Angular 1.5 component vs. old directive - where is a link function?

前端 未结 6 2022
夕颜
夕颜 2020-12-12 23:00

I\'ve been reading this nice recent article about new .component() helper in Angular 1.5, which is supposed to help everyone to migrate to Angular 2 eventually.

6条回答
  •  青春惊慌失措
    2020-12-12 23:13

    Ok, so it appears that controller is the right place for it now, since it is the only possible one. Also we can't use a replace option in the a component helper.

提交回复
热议问题