Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.directive('myDirective', function() {
- return {
- replace: true,
- restrict: 'E',
- templateUrl: "/app/partials/template.html"
- }
- });
- <input type="text" ng-model="name" />
- My name is {{name}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement