本文整理匯總了TypeScript中@angular/upgrade/static.UpgradeModule類的典型用法代碼示例。如果您正苦於以下問題:TypeScript UpgradeModule類的具體用法?TypeScript UpgradeModule怎麽用?TypeScript UpgradeModule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了UpgradeModule類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor( upgrade: UpgradeModule) {
upgrade.bootstrap(document.body, ['demo'], { strictDi: true });
}
示例2: ngDoBootstrap
ngDoBootstrap() {
this.upgrade.bootstrap(document.body, ['heroApp'], { strictDi: true });
}
示例3: ngDoBootstrap
ngDoBootstrap(){
this.upgrade.bootstrap(document.documentElement, [moduleName], {strictDi: true});
}
示例4: ngDoBootstrap
ngDoBootstrap() {
this.upgrade.bootstrap(document.body, [ng1AppModule], { strictDi: true });
}
示例5: ngDoBootstrap
ngDoBootstrap() {
this.upgrade.bootstrap(document.documentElement, ['MyVoteApp']);
}
示例6: ngDoBootstrap
ngDoBootstrap() {
this.upgrade.bootstrap(document.documentElement, ['phonecatApp']);
}
示例7: ngDoBootstrap
ngDoBootstrap() {
// The DOM must be already be available
this.upgrade.bootstrap(document.body, [app.name]);
}
示例8: ngDoBootstrap
ngDoBootstrap() {
this.upgrade.bootstrap(document.body, [sampleAppModuleAngularJS.name], { strictDi: true });
}
示例9: ngDoBootstrap
public ngDoBootstrap() {
this.upgrade.bootstrap(document.body, ['netflix.spinnaker']);
}