Skip to content

Instantly share code, notes, and snippets.

@cladera

cladera/app.js

Last active Aug 29, 2015
Embed
What would you like to do?
Google Analytics Experiments in AngularJS - app.js
'use strict';
angular.module('myStoreApp', [
'ngRoute'
])
.config(function($routeProvider){
$routeProvider
.when('/', {
templateUrl: 'list.html',
controller: 'ListController'
})
.when('/product/:id', {
templateUrl: 'product.html',
controller: 'ProductController'
})
.otherwise({
redirectTo: '/'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment