Angular
Source Code and Backup
This is a note about the backup of Angular projects.
To only keep the source code for the angular project files, the node_modules
folder can be removed as this is downloaded from the internet.
Build node_modules
To restore of such a folder without the node_modules
folder:
first do a
npm install
in the project directory. This will download the necessary modules files.Then do a
ng serve
to run the development server.
Templating
[] The square bracket denotes data flowing from the component to the HTML.
() The round bracket denotes an event from a user event to the component.
* Structural Directive responsible for changing the layout of the HTML elements from the DOM. E.g. *ngIf