Flight Booking - Web Application using Angular, TypeScript + ASP.NET
Day1 - Angular & ASP.NET Core
Multi-page VS Single-page
SPA(Single-page Angular)
Angular
Angular -> TypeScript
Javascript Runs on Browsers
TS Typescript
app.componen.ts file:
classAppComponent{}//Export the class from the outside of the fileexportclassAppComponent{//name: title; field: stringtitle: string='app';title='app';items: stringp[]=['item 1','item 2'];}//TypeScript Array FieldexportclassAppComponent{log(text: string): void{varmessage: string='Message'+text;console.log(message);}//public by defaultprivatelog(text: string) : void{...}items=['item 1','item 2'];f(){this.log(...);this.items...
}}