Skip to content

Instantly share code, notes, and snippets.

@MichelleDiniz
Last active August 29, 2015 14:26
Show Gist options
  • Save MichelleDiniz/9dfe720519f19ffd2303 to your computer and use it in GitHub Desktop.
Save MichelleDiniz/9dfe720519f19ffd2303 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('myApp.view1', ['ngRoute'])
.config(['$routeProvider', view1Config])
.controller('View1Ctrl', [function() {
}])
function view1Config($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'view1/view1.html',
controller: 'View1Ctrl'
});
}
view1Config['$inject'] = ['$routeProvider'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment