當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript core.bootstrap函數代碼示例

本文整理匯總了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";
開發者ID:QuinntyneBrown,項目名稱:delegation-poker-app,代碼行數:20,代碼來源:index.ts

示例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";
開發者ID:QuinntyneBrown,項目名稱:digital-architecture,代碼行數:20,代碼來源:index.ts

示例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]
});
開發者ID:QuinntyneBrown,項目名稱:digital-architecture,代碼行數:12,代碼來源:index.ts

示例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
    ]
});
開發者ID:QuinntyneBrown,項目名稱:digital-architecture,代碼行數:29,代碼來源:main.ts


注:本文中的angular-rx-ui/src/components/core.bootstrap函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。