Created
August 13, 2017 13:55
-
-
Save anonymous/db616b50f63fd46d7d60c79c8e1d190b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const util = require('util'); | |
angular.module('app') | |
.directive('bar',[ | |
function(){ | |
return { | |
restrict:'AE', | |
templateUrl:'tpl/directives/bar.html', | |
scope: { | |
foo: '=', | |
}, | |
link: function(scope, element, attrs) { | |
console.log('scope: ', util.inspect(scope)); | |
} | |
}; | |
} | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment