Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <div ng-show="loading" class="loading">Loading</div>
  2.  
  3. <div class="container" ng-app="myApp">
  4. <div ng-view>
  5.  
  6. </div>
  7. </div>
  8.  
  9. angular.module('docsSimpleDirective', [])
  10. .controller('Controller', ['$scope', function($scope) {
  11. $scope.customer = {
  12. name: 'Naomi',
  13. address: '1600 Amphitheatre'
  14. };
  15. }])
  16. .directive('myCustomer', function() {
  17. return {
  18. template: 'Name: {{customer.name}} Address: {{customer.address}}'
  19. };
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement