πββοΈ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MyPage = (props) => { | |
| return ( | |
| <div> | |
| <div id="title">My Test Page</div> | |
| {data.map((component, i) => { | |
| <> | |
| <h3> : {component.heading} </h3> | |
| <div key={i}> | |
| <MyComponent component={component} /> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { LocalStorageService } from '../services/local-storage.service'; | |
| import { NgModule, ModuleWithProviders } from '@angular/core'; | |
| import { Platform } from '@ionic/angular'; | |
| import { LocalStorageMobileService } from '../services/local-storage-mobile.service'; | |
| import { LocalStorageBrowserService } from '../services/local-storage-browser.service'; | |
| import { CookieService } from 'ngx-cookie-service'; | |
| const storageServiceFactory = (platform: Platform, cookieService: CookieService) => ( | |
| platform.is('cordova') ? new LocalStorageMobileService() : new LocalStorageBrowserService(cookieService) | |
| ); |