-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
37 lines (32 loc) · 1.1 KB
/
app.js
File metadata and controls
37 lines (32 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var app = angular.module('flickrApp', ['ui.router', 'ngMaterial', 'ngMessages', 'uiGmapgoogle-maps', 'me-lazyload']);
app.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider.state("home", {
url: "/",
controller: "HomeCtrl",
templateUrl: "views/home.html"
})
$stateProvider.state("about", {
url: "/about",
controller: "AboutCtrl",
templateUrl: "views/about.html"
})
$stateProvider.state("contact", {
url: "/contact",
controller: "ContactCtrl",
templateUrl: "views/contact.html"
})
$stateProvider.state("photoLocations", {
url: "/photoLocations",
controller: "PhotoLocationsCtrl",
templateUrl: "views/photoLocations.html"
})
$stateProvider.state("gallery", {
url: "/gallery?photosetid",
controller: "GalleryCtrl",
templateUrl: "views/gallery.html"
})
// use the HTML5 History API
$locationProvider.html5Mode(true);
// google api key AIzaSyAQ9IW7_K5YkfRX7FEqBi_qoSRbzFLP-Rg
});