本文整理汇总了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';