mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Simple project demonstrating ng2 component hosting within ng1-based application (based on official angular-seed repo).
14 lines
317 B
JavaScript
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'});
|
|
}]);
|
|
|