I have simple directive:
var goodsProperties = angular.module('goodsProperties', []);
goodsProperties.directive('showGoodsProperties', function() {
var directive = {
priority: 0,
template: '<h1>Hello World</h1>',
replace: false,
transclude: false,
restrict: 'C'
};
return directive;
});
And html for it's:
<div ng-app="goodsProperties">
<div class="showGoodsProperties"></div>
</div>
And i want add element dynamic on Javascript. Full code see at http://jsfiddle.net/ZvPmh/5/
I have function addClick(), what add new tag with directive class.
If i call addClick() in body, all work fine. But if i call addClick() on a-tag, angular don't see new element like directive.
If i call addClick() in body, all work fine. But if i call addClick() on a-tagCan you explain?