Try   HackMD

Angular課程筆記1: 基本架構

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Modules 模組

  • 大多數的Angular app都會由複數模組所組成
    -皆起始於一個Root Module(根模組)
    -每個module都有各自特定的功能

Components 元件

  • 是modules的主要構成要素
    -可重複利用
    -每個components包含一個html template/ 處理行為的ts類別/ css選擇器

Services 服務

  • 負責處理資料交換的職責
    -例如與後端進行串接時皆是透過service處理

Directives 指令

  • 指令是為 Angular 應用程式中的元素新增額外行為的類別
    -可透過Angular的內建指令管理表單、列表、樣式以及要讓使用者看到的任何內容
tags: Angular