Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <h3>Select some text </h3>
- <div ng-controller="Controller">
- {% for i in result %}
- <div id={{i._id}} class="task" commentId = {{i._id}} get-popover-content>{{i.text}} </div>
- <div id={{i._id}} class="task" commentId = {{i._id}} my-customer> {{i.text}} </div>
- <br/>
- {% endfor %}
- </div>
- <script>
- (function(angular) {
- 'use strict';
- 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}}'
- };
- });
- })(window.angular);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement