react2angular icon indicating copy to clipboard operation
react2angular copied to clipboard

How to use in a directive

Open gavyncaldwell opened this issue 6 years ago • 3 comments

Hey there. Is it possible to use this in a directive rather than a component? I'm getting the error when using .component the .component is not a function. components aren't used anywhere currently in the project I'm working but we are using directives. If it's possible how would I go about doing this? I've tried the same syntax as .component but that does not work. I'm not an angular developer so I'm not too familiar with all of this.

gavyncaldwell avatar Mar 28 '19 23:03 gavyncaldwell

unsubscribe

Gavyn Caldwell [email protected] 于2019年3月29日周五 上午7:17写道:

Hey there. Is it possible to use this in a directive rather than a component? I'm getting the error when using .component the .component is not a function. components aren't used anywhere currently in the project I'm working but we are using directives. If it's possible how would I go about doing this? I've tried the same syntax as .component but that does not work. I'm not an angular developer so I'm not too familiar with all of this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coatue-oss/react2angular/issues/102, or mute the thread https://github.com/notifications/unsubscribe-auth/AAE8kdnMbHgQBX6Vhizm0pUoSpdWz2acks5vbU1tgaJpZM4cRUNi .

squallyan avatar Mar 29 '19 01:03 squallyan

unsubscribe?

gavyncaldwell avatar Mar 30 '19 04:03 gavyncaldwell

angular.component is provided in angularjs 1.5. My project is currently 1.4+ and I'm going to migrate to 1.5 before using this project. You may follow this instruction

iplus26 avatar Jan 13 '20 05:01 iplus26