Last active
February 2, 2019 16:35
-
-
Save jagad89/d160a220a455313654b528e1f1f0a248 to your computer and use it in GitHub Desktop.
Angular note
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install angular cli | |
> npm install -g @angular/cli | |
Create project with Angual CLI | |
> ng new <project-name> | |
eg. | |
> ng new blog | |
Start Angular server and open app in browser | |
> ng serve --open | |
This will create basic folder structure of Angular. | |
Mostly we code in src/app folder. | |
angular.json : file which help angular cli to find entry point | |
main.ts: starting point of angular application | |
Modules: Modules are packaging which contains component. | |
Components: Components are UI elements, one component can use multipe component. If you familiar with MVC pattern, Component is equivalent to controller part. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment