这是一个演示应用,展示了构建 Angular 应用的最佳实践。演示视频可在 https://www.youtube.co… 中找到。
这是一个演示应用,展示了构建 Angular 应用的最佳实践。演示视频可在 https://www.youtube.co… 中找到。
This is a demo app that shows best practices for building Angular apps
A video of the presentation can be found here
https://www.youtube.com/watch?v=9IBljKq4XrQ
The master branch is the completed version with notes.
To build this out on your own, follow these steps
git clone https://github.com/addisonedwardlee/angular-demo.git
cd angular-demo
git checkout origin/demo
npm start
---Note---
I am preserving the architecture of this app to match the demo video, but would otherwise rebuild it as follows
…If a single module has many services, directives, filters, etc., I would recommend creating separate folders for each one of these within the module itself
activityFeed/ --> all components related to the activityFeed module
activityFeed.html --> the template rendered for this module
activityFeed.js --> the application logic for this module
services/
activityService1.js --> a service only used by this module
activityService2.js --> a service only used by this module
activityService3.js --> a service only used by this module暂无开放 Issues,或尚未同步最近议题。