hblog
welcome here

Angular2, Nodes

  • 可以通过扩展RouterOutletDirective来实现权限控制
  • 使用FormBuilderng-form-model进行自定义表单验证
  • 使用AsyncRouter(即在RouterConfig里面设置loader)实现components的异步加载
  • 一个Component的生命周期hook:
    • OnChanges (if any bindings have changed),
    • OnInit (after the first check only),
    • DoCheck,
    • AfterContentInit,
    • AfterContentChecked,
    • AfterViewInit,
    • AfterViewChecked,
    • OnDestroy (at the very end before destruction) Implement this interface to get notified when any data-bound property of your directive changes.