Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

main.ts

13 lines419 Bytes

1import { bootstrapApplication } from '@angular/platform-browser'
2import { AppComponent } from './app/app.component'
3import { appConfig } from './app/app.config'
4​
5bootstrapApplication(AppComponent, appConfig)
6 .then(() => {
7 // an simple endpoint for getting current list
8 localStorage.setItem(
9 'tasks',
10 JSON.stringify(['Item 1', 'Item 2', 'Item 3']),
11 )
12 })
13 .catch((err) => console.error(err))