1 2 3 4 5 6 7 8 9 | [?] Which module does this controller belongs to? articles core ? events talks users create public/modules/events/controllers/events.client.controller.js create public/modules/events/tests/events.client.controller.test.js |
1 2 3 4 5 6 7 8 | 'use strict'; angular.module('events').controller('EventsController', ['$scope', function($scope) { // Events controller logic // ... } ]); |
1 2 3 4 5 6 7 8 | 'use strict'; angular.module('events').controller('EventsController', ['$scope', function($scope) { $scope.title = 'High Performance WebSocket'; } ]); |
1 2 3 4 | <div class="row center-block event" itemscope itemtype="http://data-vocabulary.org/Event" ng-controller="EventsController"> |
1 2 | <h3 class="event-title"><a href="http://www.meetup.com/HTML5-Denver-Users-Group/events/160326502/" itemprop="url"><span itemprop="summary">{{title}}</span></a></h3> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 'use strict'; angular.module('events').controller('EventsController', ['$scope', function($scope) { $scope.title = 'High Performance WebSocket'; $scope.event = { 'name': '"Developing Offline Applications" and "HTML 5 Animations"', 'time': 1411430400000, 'event_url': 'http://www.meetup.com/HTML5-Denver-Users-Group/events/160326502/', 'description': '<p><b>6 pm : "Developing Offline Applications with HTML 5" by Venkat Subramaniam</b></p>', 'venue': { 'name': 'Rally Software', 'address_1': '1550 Wynkoop', 'city': 'Denver', 'state': 'CO', } } } ]); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <h3 class="event-title"><a href="{{event.event_url}}" itemprop="url"><span itemprop="summary">{{event.name}}</span></a></h3> <div class="col-md-4"> <h4>When</h4> <p>{{event.time}}</p> <h4>Where</h4> <address itemprop="location" itemscope itemtype="http://data-vocabulary.org/Organization"> <span itemprop="name">{{event.venue.name}}</span><br> <span itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address"> <span itemprop="street-address">{{event.venue.address_1}}</span><br> <span itemprop="locality">{{event.venue.city}}</span>, <span itemprop="region">{{event.venue.state}}</span><br> </span> </address> </div> <div class="col-md-8" itemprop="description"> {{event.description}} </div> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |