Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <my-element my-attribute="false" />
- myApp.directive('myElement', function ($window) {
- return {
- restrict:'E',
- transclude: true,
- scope: {
- myAttribute: '='
- },
- controller: function($scope) {
- },
- template: '<div>Hello <span ng-if="myAttribute == true">, World</span></div>'
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement