Slide 19
Slide 19 text
Module + Controller
var myApp = angular.module('myApp',[]);
myApp.controller('ConferencesController', ['$scope', function($scope) {
$scope.conferences = [
{'name':'WJAX', 'year':'2014', 'location':'Munich'},
{'name':'OOP', 'year':'2015', 'location':'Munich'},
{'name':'JAX', 'year':'2015', 'location':'Munich'},
{'name':'JavaOne', 'year':'2015', 'location':'San Francisco'},
];
}]);
11/5/2016 © Kai Tödter, Licensed under a Creative Commons Attribution 4.0 International License. 19