Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomtt/f13577d7a0fc9b8e854e5fda991adee6 to your computer and use it in GitHub Desktop.
Save tomtt/f13577d7a0fc9b8e854e5fda991adee6 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