本文整理匯總了TypeScript中@app/core.LocalStorageService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript LocalStorageService類的具體用法?TypeScript LocalStorageService怎麽用?TypeScript LocalStorageService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了LocalStorageService類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: tap
tap(action => {
const { settings } = action.payload;
const { pageAnimations, elementsAnimations } = settings;
this.localStorageService.setItem(SETTINGS_KEY, settings);
this.animationsService.updateRouteAnimationType(
pageAnimations,
elementsAnimations
);
})
示例2:
tap((action: ActionTodosPersist) =>
this.localStorageService.setItem(TODOS_KEY, action.payload.todos)
示例3:
tap(action =>
this.localStorageService.setItem(STOCK_MARKET_KEY, {
symbol: action.payload
})
示例4:
tap((action: ActionStockMarketRetrieve) =>
this.localStorageService.setItem(STOCK_MARKET_KEY, {
symbol: action.payload.symbol
})
示例5:
tap(action =>
this.localStorageService.setItem(SETTINGS_KEY, {
theme: action.payload
})
示例6:
tap(action =>
this.localStorageService.setItem(TODOS_KEY, action.payload.todos)
示例7:
tap((action: ActionSettingsChangeTheme) =>
this.localStorageService.setItem(SETTINGS_KEY, {
theme: action.payload.theme
})