The learn-* series projects are designed for Angular beginners in Chinese, please don't use these codes in your prodution.
这是一个教学项目,全面示范了Angualr组件的所有技术细节。
分支上的内容:
- template分支,用12个例子全面示范Angular的模板语法
- communication分支,示范组件之间的3种典型的通讯方式
- lifecycle分支,示范组件的生命周期玩法,用13个例子详细演示8个生命周期的用法和注意点,同时示范ChangeDetectionStrategy.OnPush的用法
- animation分支,示范Angular动画的基本用法,推荐一个写好的开源动画库
- dynamic-component分支,示范动态组件的各种玩法
- shadowdom分支,示范Angular渲染组件的3种方式和影子DOM的玩法
- ng-content分支,示范内容投影用法
- contentchild分支,示范ContentChild和ContentChildren的玩法
- viewchild分支,示范ViewChild和ViewChildren的玩法
- https://github.com/damoqiongqiu/learn-component
- https://github.com/damoqiongqiu/learn-directive
- https://github.com/damoqiongqiu/learn-router
- https://github.com/damoqiongqiu/learn-module
- https://github.com/damoqiongqiu/learn-form
- https://github.com/damoqiongqiu/learn-service
- https://github.com/damoqiongqiu/learn-test
- https://github.com/damoqiongqiu/learn-webpack
- https://github.com/damoqiongqiu/angular-seo
网络原因,国内用户推荐使用gitee上的代码,你懂的。
- https://gitee.com/mumu-osc/learn-component
- https://gitee.com/mumu-osc/learn-directive
- https://gitee.com/mumu-osc/learn-router
- https://gitee.com/mumu-osc/learn-module
- https://gitee.com/mumu-osc/learn-form
- https://gitee.com/mumu-osc/learn-service
- https://gitee.com/mumu-osc/learn-test
- https://gitee.com/mumu-osc/learn-webpack
- https://github.com/damoqiongqiu/angular-seo
如果你需要一个更复杂、更完整一点的例子,请试试OpenWMS这个模板项目:https://gitee.com/mumu-osc/OpenWMS-Frontend
关于Angular的更多资源、小技巧、文章等,请点这里:http://www.ngfans.net/
如果您有Angular相关的问题需要讨论,或者单纯想跟我Say Hello,请加上面几个扣扣群。注意,我每天都会收到大量的求助消息,真的有点忙,所以请您优先在扣扣群里面讨论问题。