本文整理匯總了TypeScript中angular-rx-ui/src/components/core.bootstrap函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript bootstrap函數的具體用法?TypeScript bootstrap怎麽用?TypeScript bootstrap使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了bootstrap函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: bootstrap
import { provide, provideAction,bootstrap } from "angular-rx-ui/src/components/core";
import { SituationEditorComponent } from "./situation-editor.component";
import { SituationListComponent } from "./situation-list.component";
import { SituationComponent } from "./situation.component";
import { SituationsContainerComponent } from "./situations-container.component";
import { SituationActionCreator } from "./situation.action-creator";
import { SituationService } from "./situation.service";
import * as reducers from "./situation.reducers";
import * as actions from "./situation.actions";
const appSituationsModule = angular.module("app.situations", []);
bootstrap(appSituationsModule, {
components: [SituationComponent, SituationEditorComponent, SituationsContainerComponent, SituationListComponent],
providers: [SituationActionCreator, SituationService],
reducers: reducers,
actions: actions
});
export * from "./situations.routes";
示例2: bootstrap
import { provide, provideAction,bootstrap } from "angular-rx-ui/src/components/core";
import { ArticleEditorComponent } from "./article-editor.component";
import { ArticleListComponent } from "./article-list.component";
import { ArticleComponent } from "./article.component";
import { ArticlesContainerComponent } from "./articles-container.component";
import { ArticleActionCreator } from "./article.action-creator";
import { ArticleService } from "./article.service";
import * as reducers from "./article.reducers";
import * as actions from "./article.actions";
const appArticlesModule = angular.module("app.articles", []);
bootstrap(appArticlesModule, {
components: [ArticleComponent, ArticleEditorComponent, ArticlesContainerComponent, ArticleListComponent],
providers: [ArticleActionCreator, ArticleService],
reducers: reducers,
actions: actions
});
export * from "./articles.routes";
示例3: bootstrap
import { bootstrap } from "angular-rx-ui/src/components/core";
import * as AppReducers from "./app.reducers";
import * as PropertyReducers from "./property.reducers";
import * as SectionReducers from "./section.reducers";
import * as UIReducers from "./ui.reducers";
const contentAggregationReducersModule = angular.module("app.contentAggregation.reducers", []);
bootstrap(contentAggregationReducersModule, {
reducers: [AppReducers, PropertyReducers, SectionReducers, UIReducers]
});
示例4: bootstrap
import { provide, provideRoutePromise, bootstrap } from "angular-rx-ui/src/components/core";
import { authorizationGuard } from "angular-rx-ui/src/components/routing/authorization-guard";
import { routeChangeSuccessIsAdminReducer } from "angular-rx-ui/src/components/routing/route-change-success-is-admin.reducer";
import { AppComponent } from "./app/app.component";
import { AdminAppComponent } from "./app/admin-app.component";
const appModule = angular.module("digitalArchitectureApp", [
"components",
"app.articles",
"app.contentAggregation",
"app.pages",
"app.photos",
"app.shared"
]);
bootstrap(appModule, {
api: "api",
components: [AppComponent, AdminAppComponent],
loginRedirectUrl: "/",
html5Mode: true,
guards: [authorizationGuard],
run: [routeChangeSuccessIsAdminReducer],
routes: [
...ArticlesRoutes,
...PagesRoutes,
...PhotosRoutes
]
});