Skip to content

Instantly share code, notes, and snippets.

@kevinwestern
Created June 4, 2013 05:08
Show Gist options
  • Save kevinwestern/5703727 to your computer and use it in GitHub Desktop.
Save kevinwestern/5703727 to your computer and use it in GitHub Desktop.
var app = angular.module('apm', ['apm.controller']);
app.config(['$routeProvider', function($routeProvider) {
alert('test');
$routeProvider.when('/', {
controller: 'HomeCtrl',
template: '/static/templates/home.ng'
}).otherwise({redirectTo: '/'});
}]);
app.controller('HomeCtrl', ['$scope', function($scope) {
$scope.test = 'blah';
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment