Introduction to Angular
Last updated
Last updated
Maintained by Google and the community
Client side framework for creating powerful web applications
Evolved from AngularJS and is continually being improved
Open Source (MIT License)
The quick-start guide is a great place to start learning how to build your first application
Made for creating modern web applications
Separation of concerns - MVC
Dependency Injection
Testing using Karma and Jasmine
E2E testing with Protractor
Angular CLI standardizes project setup, build, and deploy
Supports performance and SEO optimizations using lazing loading and Angular Universal
Community tooling
Manage complexity
Backend API calls
Validating user input
Application Navigation
User/System events
Superior tooling
TypeScript
Enterprise ready
Components
Services
Directives
Pipes
Modules
Fixed fundamental architecture issues
Replaces controllers with components
Modules to help organize code
TypeScript
Angular-CLI
Application must be contained in a single module (can have multiple sub-modules)
Angular-CLI generates
app.module.ts
imports
components
services
modules
main.ts
Bootstraps the app.module
index.html
Renders app.component.ts using app-root selector
Error: Can't bind to 'ngModel' since it isn't a known property of 'input'. This type of error is telling us that we are using something that Angular hasn't been informed of. This typically means that we forgot to import a module, which we will do next.
The Angular-CLI builds the application, creates a dist folder, and places artifacts into the folder.
We learned
Basic features of Angular
How to create an Angular application
How Angular wires up my application
Files created by Angular-CLI