Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div ng-show="loading" class="loading">Loading</div>
- <div class="container" ng-app="myApp">
- <div ng-view>
- </div>
- </div>
- angular.module('docsSimpleDirective', [])
- .controller('Controller', ['$scope', function($scope) {
- $scope.customer = {
- name: 'Naomi',
- address: '1600 Amphitheatre'
- };
- }])
- .directive('myCustomer', function() {
- return {
- template: 'Name: {{customer.name}} Address: {{customer.address}}'
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement