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

14 lines
317 B
JavaScript

'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.view3',
'myApp.version'
]).config(['$routeProvider', function ($routeProvider) {
$routeProvider.otherwise({redirectTo: '/view1'});
}]);