-
Notifications
You must be signed in to change notification settings - Fork 1
Module 01 Typescript and introduction to Angular
Kobi Hari edited this page Feb 16, 2020
·
2 revisions
hello-typescript | Introduction to typescript |
hello-angular | Introduction to angular files structure, mvvm and binding |
notepad | Deep dive into angular components directives, bindings |
- We have Convered the 7 types of javascript: boolean, number, string, object, function, null and undefined
- We have seen how to use JSON to describe complex object values
- We have seen the true meaning of the
new
andthis
keywords, and most specifically - that they do not have the same meaning as in Java. - We have experienced the problem of the missing
this
context
- How to declare a type for a variable
- Declaring function return type
- Defining arrays
- Defining Tuples
- Using the
let
keyword - Defining Classes
- Declaring constructors and initializing fields in the constructor signature
- private, public and protected fields
- Using interfaces
- Typescript definition for Type Safety as "signature compatible"
- Casting in typescript
- Union Types
- Cross Types
- the
type
alias
- We have installed NodeJS from the website and run javascript files using node
- Npm was also installed and we used it to install the typescript compiler globally
- We have created ts project and compiled it with TSC and run it with Node
- Finally, we have configured tsconfig.json so we can continuesly compile our project in the background
- We used npm to intall the angular CLI
- We used the cli to generate a new angular project using
ng new
- we have run the application using
ng server
and viewed the application in the browser - We went over the project structure and files, including
main.ts
,index.html
andstyles.css
- We have inspected the App Module and App Component and understood that
- Angular applications are divided into Modules
- A plain class turns into an Angular module using the
@NgModule
Decorator - Angular Modules contain components (amongst other things)
- A plain class turns into an Angular Component using the
@Component
Decorator
- The anuglar engine inspects the DOM, and applies it's magic on elements it recognizes as components
- Inject the template into the DOM node
- Instantiate the component class
- Bind the html to the component instance members