Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var DirApp = angular.module("DirApp", []);
- DirApp.controller('DirApCntrl', ['$scope', function($scope) {
- $scope.result = "Welcome to Custom AngularJS Directives";
- }]);
- DirApp.directive('myCustomDir', function () {
- return {
- restrict: āEā,
- template: '<p>{{result}}</p>'
- };
- });
Add Comment
Please, Sign In to add comment