Angular
Angular
What is angular:
Angular is a JavaScript framework which allows you to create
reactive single-page-applications (SPAs)
Angular versions:
Angular1: reffered as AngualrJs
Angular2 – presernt : reffered as Angular
Project Setup:
1. Install nodejs
2. Angular cli: The Angular CLI is a command-line interface tool
that you use to initialize, develop Angular applications
directly from a command shell (npm install -g @angular/cli)
3. Create angular app (ng new app-name)
4. Run the application (ng server)
Project Structure:
App-component
Node-modules
Package.json
Index.html
Basics:
How an angular app gets loaded (main.ts-app-html )
Creating the component
Using the components
Nesting the components
Template and templateUrl
StyleUrl and styles:[]
Attribure selectors using ([] )
Data Binding: