简体   繁体   中英

How to use filters of Angular 1.x in Angular 2?

I designed few custom filters in Angular 1.x and I want to reuse the same in Angular 2. Can someone please tell me if it is possible to use custom filters of Angular 1.x in Angular 2?

Thanks

Angular 1 & Angular 2 is totally different. Don't confuse with both. You can use logic but not codes(code style is different).

https://angular.io/docs/ts/latest/cookbook/ajs-quick-reference.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM