Guest User

Untitled

a guest
Mar 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var DirApp = angular.module("DirApp", []);
  2. DirApp.controller('DirApCntrl', ['$scope', function($scope) {
  3. $scope.result = "Welcome to Custom AngularJS Directives";
  4. }]);
  5.  
  6. DirApp.directive('myCustomDir', function () {
  7. return {
  8. template: '<p>{{result}}</p>'
  9. };
  10. });
Add Comment
Please, Sign In to add comment