Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2017 13:55
Show Gist options
  • Save anonymous/db616b50f63fd46d7d60c79c8e1d190b to your computer and use it in GitHub Desktop.
Save anonymous/db616b50f63fd46d7d60c79c8e1d190b to your computer and use it in GitHub Desktop.
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