closes #1070 Separates UpgradeAdapter reference guide examples from the PhoneCat tutorial examples and update dependencies for phonecat upgrade examples
17 lines
363 B
TypeScript
17 lines
363 B
TypeScript
// #docregion bootstrap
|
|
import {upgradeAdapter} from './upgrade_adapter';
|
|
|
|
// #enddocregion bootstrap
|
|
|
|
declare var angular:any;
|
|
|
|
angular.module('heroApp', [])
|
|
.controller('MainCtrl', function() {
|
|
this.message = 'Hello world';
|
|
});
|
|
|
|
// #docregion bootstrap
|
|
|
|
upgradeAdapter.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
|
// #enddocregion bootstrap
|