Reputation: 7191
Below is the HTML
<div ng-app = 'myApp'>
<div class='some'>
</div>
</div>
The angular code is below: -
<script>
var myApp = angular.module('myApp', []);
myApp.directive('some', function() {
alert('hi');
return {
restrict: 'C',
link: linkFN,
}
});
</script>
this is the jsfiddle
Upvotes: 0
Views: 43
Reputation: 15087
Because you included AngularJS twice: the first time is in the external resources, and the second one is in Frameworks & Extensions
list. Remove any of them.
Upvotes: 2