Use AngularJS directive in Angular Component
问题 I'm trying to upgrade an angularjs directive to use it my angular component. I've gotten the hybrid (ng1 + ng2) environment to work. I can also inject angularjs services in angular and use them in angular components (I actually got this working even with angularjs 1.4.x). Now I'm trying to use an existing angularjs directive in angular, but not working. For reference, are some snippets of my codes. [index.html] (my-app is the Angular 4 root component) ... <body> <div class="banner">Angular