Created
September 30, 2014 01:56
-
-
Save marawannwh/8a80863b6d07655880eb 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
directivesModule.directive('test', function(){ | |
return { | |
// restrict: 'AEC', | |
templateUrl: '/public/partials/test.html', | |
scope:{ | |
write: function(){ | |
console.log("working") | |
} | |
}, | |
controller: function($scope){ | |
this.write = function(){ | |
console.log("working") | |
} | |
} | |
}; | |
}); | |
<button type="button" ng-click="write()" aria-hidden="true"> | |
log | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment