Angular 2 Component - Access DOM (or create Component without template, purely from JS)

后端 未结 5 1281
滥情空心
滥情空心 2021-02-05 06:41

Trying to play with Angular 2 here... understood that it\'s still in alpha.

How do I access DOM elements from Component? Specifically, I would like to use other librarie

5条回答
  •  粉色の甜心
    2021-02-05 06:48

    This doc (http://victorsavkin.com/post/118372404541/the-core-concepts-of-angular-2) mentions 'decorator-style directives' which I believe are described with a little more detail and basic example here (https://angular.io/api/core/Directive).

提交回复
热议问题