简体   繁体   中英

I want to run jquery code after the angular js completed all its rendering?

I want to hide and show my div chart. it should work with pages (Add, edit , saveas). the toggling of div is done through checkbox when i checked on checkbox div show and when its unchecked div is hided. In addnew page i stored the value of checkbox ie(true/false). when user go to edit page if checkbox value is true it should show divchart and vice and versa for false value.

Why not use ngShow? https://docs.angularjs.org/api/ng/directive/ngShow

I think it's better to avoid mixing jquery into AngularJS code if possible.

For the future, you should format the code to make it more readable.

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