本文整理匯總了TypeScript中@app/core.LocalStorageService.setItem方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript LocalStorageService.setItem方法的具體用法?TypeScript LocalStorageService.setItem怎麽用?TypeScript LocalStorageService.setItem使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@app/core.LocalStorageService
的用法示例。
在下文中一共展示了LocalStorageService.setItem方法的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
tap((action: ActionTodosPersist) =>
this.localStorageService.setItem(TODOS_KEY, action.payload.todos)
示例3: tap
tap(action =>
this.localStorageService.setItem(STOCK_MARKET_KEY, {
symbol: action.payload
})
示例4: tap
tap((action: ActionStockMarketRetrieve) =>
this.localStorageService.setItem(STOCK_MARKET_KEY, {
symbol: action.payload.symbol
})
示例5: tap
tap(action =>
this.localStorageService.setItem(SETTINGS_KEY, {
theme: action.payload
})
示例6: tap
tap(action =>
this.localStorageService.setItem(TODOS_KEY, action.payload.todos)
示例7: tap
tap((action: ActionSettingsChangeTheme) =>
this.localStorageService.setItem(SETTINGS_KEY, {
theme: action.payload.theme
})