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


TypeScript devtools.instrumentStore函數代碼示例

本文整理匯總了TypeScript中@ngrx/devtools.instrumentStore函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript instrumentStore函數的具體用法?TypeScript instrumentStore怎麽用?TypeScript instrumentStore使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了instrumentStore函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: main

export function main() {
  return bootstrap(App, [
      provideStore({counter}),
      instrumentStore(),
      devtoolsConfig({
          position: 'bottom',
          visible: true,
          size: 0.3
      })
  ])
  .catch(err => console.error(err));
}
開發者ID:Hongbo-Miao,項目名稱:ngrx-examples,代碼行數:12,代碼來源:bootstrap.ts

示例2: main

export function main() {
  return bootstrap(TodoApp, [
      APP_ACTIONS,
      provideStore(APP_REDUCERS),
      instrumentStore(),
      devtoolsConfig({
          position: 'bottom',
          visible: true,
          size: 0.3
      })
  ])
  .catch(err => console.error(err));
}
開發者ID:Hongbo-Miao,項目名稱:ngrx-examples,代碼行數:13,代碼來源:bootstrap.ts

示例3: main

export function main() {
  return bootstrap(App, [
      ELEMENT_PROBE_PROVIDERS,
      provideStore({counter}),
      ...BASIC_LOGGER_MIDDLEWARE,
      instrumentStore(),
      devtoolsConfig({
          position: 'bottom',
          visible: true,
          size: 0.3
      })
  ])
  .catch(err => console.error(err));
}
開發者ID:Lube,項目名稱:ngrx-examples,代碼行數:14,代碼來源:bootstrap.ts

示例4: main

export function main() {
  return bootstrap(ShoppingCartApp, [
      ELEMENT_PROBE_PROVIDERS,
      provideStore(APP_REDUCERS),
      installSagaMiddleware(...shopSagas),
      instrumentStore(),
      devtoolsConfig({
          position: 'bottom',
          visible: true,
          size: 0.3
      })
  ])
  .catch(err => console.error(err));
}
開發者ID:Hongbo-Miao,項目名稱:ngrx-examples,代碼行數:14,代碼來源:bootstrap.ts

示例5: main

export function main() {
  return bootstrap(AsyncApp, [
      HTTP_PROVIDERS,
      provideStore({selectedReddit, postsByReddit}),
      Reddit,
      RedditActions,
      instrumentStore(),
      devtoolsConfig({
          position: 'bottom',
          visible: true,
          size: 0.3
      })
  ])
  .catch(err => console.error(err));
}
開發者ID:Hongbo-Miao,項目名稱:ngrx-examples,代碼行數:15,代碼來源:bootstrap.ts

示例6: bootstrap

import {bootstrap} from '@angular/platform-browser-dynamic'
import {DemoApp} from './components/app'
import {provideStore} from '@ngrx/store'
import {instrumentStore, Devtools} from '@ngrx/devtools'
import {todos} from './reducers/todos'
import {visibilityFilter} from './reducers/visibilityFilter'

bootstrap(DemoApp, [
	provideStore({todos, visibilityFilter}),
	instrumentStore()
]);
開發者ID:MikeRyan52,項目名稱:ngrxngconf,代碼行數:11,代碼來源:main.ts

示例7: enableProdMode

import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { MyApp, environment } from './app/';
import {instrumentStore} from '@ngrx/devtools';
import {provideStore} from '@ngrx/store';
import { cities } from './app/shared/reducers';
import {HTTP_PROVIDERS} from '@angular/http';

if (environment.production) {
  enableProdMode();
}

bootstrap(MyApp, [provideStore({cities}), instrumentStore(), HTTP_PROVIDERS]);
開發者ID:onlyann,項目名稱:brisbane-hackaton,代碼行數:13,代碼來源:main.ts

示例8:

import {provideStore} from '@ngrx/store';
import {Devtools, instrumentStore} from '@ngrx/devtools';

import {cart} from './cart.reducer';
import {catalog} from './catalog.reducer';
import { AppState } from '../models/appstate.model';



export const STORE_PROVIDER = [provideStore({cart,catalog},{}),instrumentStore()];

export * from './cart.reducer';
export * from './catalog.reducer';
開發者ID:andbet39,項目名稱:ng2question,代碼行數:13,代碼來源:index.ts


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