生命週期 (Life Hooks)

Angular life hoooks
開發 Angular 就不能不知道 Angular CLI 這個超級好用的命令列工具,有了這個工具,原本渾沌的開發環境,頓時清晰,許多繁瑣的瑣事,一個命令就搞定!這邊是我自己的操作筆記,讓記憶力不佳的我,有個地方可以方便查詢。
- angular.json 是 Angular CLI 的控制塔,它提供了 Angular workspace 和 project 的預設配置。
 - 講解了一些 angular.json 的資料架構。
 - 什麼是 Architect 和 Builders 與他們之間的關係。
 - Angular CLI 是如何透過 Architect 解析命令的。
 - 如何透過 assets 在打包專案時複製完整的資料。
 
Angular workspace root level 的一個文件,主要是提供 workspace 的配置與 project 的預設配置,供 Angular CLI 中 build 和 development tool 使用。
A file named angular.json at the root level of an Angular workspace provides workspace-wide and project-specific configuration defaults for build and development tools provided by the Angular CLI. Path values given in the configuration are relative to the root workspace folder.
1  | 
  | 
1  | <input (dateChange)="change()"/>  | 
1  | <mat-form-field appearance="fill">  | 
1  | import {Component} from '@angular/core';  | 
1  | import { HttpClientModule } from "@angular/common/http";  | 
1  | import { Component } from '@angular/core';  | 
1  | <mat-icon svgIcon="musicon"></mat-icon>  | 
這個資料夾通常是放 modules 常用到的 class 用來定義 interface type extend class ,為了方便使用所以特別拉出來
cpu 附載過高問題
1  | // service/index.ts  | 
1  | "optimization": {  | 
https://0xdbe.github.io/AngularSecurity-DisableInlineCriticalCSS/