Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <body>
  2. <h3>Select some text </h3>
  3. <div ng-controller="Controller">
  4. {% for i in result %}
  5. <div id={{i._id}} class="task" commentId = {{i._id}} get-popover-content>{{i.text}} </div>
  6. <div id={{i._id}} class="task" commentId = {{i._id}} my-customer> {{i.text}} </div>
  7. <br/>
  8. {% endfor %}
  9. </div>
  10.  
  11. <script>
  12. (function(angular) {
  13. 'use strict';
  14. angular.module('docsSimpleDirective', [])
  15. .controller('Controller', ['$scope', function($scope) {
  16. $scope.customer = {
  17. name: 'Naomi',
  18. address: '1600 Amphitheatre'
  19. };
  20. }])
  21. .directive('myCustomer', function() {
  22. return {
  23. template: 'Name: {{customer.name}} Address: {{customer.address}}'
  24. };
  25. });
  26. })(window.angular);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement