本文整理汇总了TypeScript中application.start函数的典型用法代码示例。如果您正苦于以下问题:TypeScript start函数的具体用法?TypeScript start怎么用?TypeScript start使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了start函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1:
import * as applicationModule from 'application';
import * as navigationModule from './shared/navigation';
applicationModule.mainModule = navigationModule.loginPage();
applicationModule.start();
开发者ID:alexziskind1,项目名称:msgraphtests,代码行数:5,代码来源:app.ts
示例2: moment
import * as application from "application";
import * as moment from "moment";
application.resources.dateFormat = (value: Date, format: string) => {
return moment(value).format(format);
};
application.start({ moduleName: "view/landing-splash" });
开发者ID:PeterStaev,项目名称:tangra-weather-app,代码行数:8,代码来源:app.ts
示例3:
import * as app from 'application';
app.mainModule = "main-page";
app.cssFile = "./app.css";
app.start();
开发者ID:abuda7em,项目名称:nativescript-cardview,代码行数:4,代码来源:app.ts
示例4:
import * as application from 'application';
application.start({ moduleName: 'login/login' });
开发者ID:dahabit,项目名称:nativescript-sinch,代码行数:2,代码来源:app.ts
示例5: function
import * as appModule from 'application';
import * as navigationModule from './shared/navigation';
if(appModule.android) {
appModule.onLaunch = function (intent) {
console.log('onLaunch');
appModule.android.onActivityCreated = function (activity) {
console.log('onCreated');
var id = activity.getResources().getIdentifier('AppTheme', 'style', activity.getPackageName());
activity.setTheme(id);
}
appModule.android.onActivityStarted = function (activity) {
console.log('onStarted');
var window = activity.getWindow();
if (window) {
window.setBackgroundDrawable(null);
}
}
}
}
// Set the start module for the application
appModule.mainModule = navigationModule.startingPage();
appModule.cssFile = 'styles/app.css';
// Start the application
appModule.start();
开发者ID:ArronNandoTech,项目名称:NativeScript-Demo,代码行数:28,代码来源:app.ts
示例6:
import * as application from 'application';
application.mainModule = "main-page";
application.cssFile = "./app.css";
application.start();
开发者ID:ChrisFlannagan,项目名称:nativescript-audio,代码行数:4,代码来源:app.ts
示例7:
import * as app from 'application';
app.start({ moduleName: "main-page" });
开发者ID:firecube,项目名称:Year4Code,代码行数:2,代码来源:app.ts
示例8:
import * as application from "application";
application.cssFile = "./tns_modules/nativescript-unit-test-runner/app.css";
application.start({ moduleName: "./tns_modules/nativescript-unit-test-runner/main-page" });
开发者ID:NathanWalker,项目名称:nativescript-unit-test-runner,代码行数:3,代码来源:app.ts
注:本文中的application.start函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论