Skip to content

Instantly share code, notes, and snippets.

@cladera
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cladera/64ee191b21078de25c3f to your computer and use it in GitHub Desktop.
Save cladera/64ee191b21078de25c3f to your computer and use it in GitHub Desktop.
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