本文整理匯總了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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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()
]);
示例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]);
示例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';