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).
15 lines
272 B
JavaScript
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() {
|
|
|
|
}]);
|