Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using angular 1 module in angular 2 app [duplicate]

Can I use Angular libraries, for example angular-cookies in Angular 2 app? Seems that this is not possible, but I want to know this cause I'm planning to upgrade project to Angular2

like image 982
sk1llfull Avatar asked Feb 16 '16 15:02

sk1llfull


1 Answers

In general, no. If you're interested in following the migration guide by running Angular 1 and 2 simultaneously, you may be able to get an Angular 1 library functioning, but it's likely not worth your trouble.

I'd encourage you not to be scared of rewriting common libraries for yourself. You'll be surprised by how easy it is - in many instances you'd spend more time trying to figure out a library's documentation, and you gain an intimate understanding of the code.

like image 133
Jack Guy Avatar answered Oct 20 '22 20:10

Jack Guy