Denys Vuika f7e6ef55a2 demo for ng1 app hosting ng2 components
Simple project demonstrating ng2 component hosting within ng1-based
application (based on official angular-seed repo).
2016-04-06 15:23:19 +01:00

15 lines
272 B
JavaScript

'use strict';
angular.module('myApp.view1', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'app/view1/view1.html',
controller: 'View1Ctrl'
});
}])
.controller('View1Ctrl', [function() {
}]);