vendredi 22 décembre 2017

Which approach is recommended for common layout in angular js

My angular application is very large. I have many screens.It has similar functionalities in almost all screens.so i decided to write a framework so that all the screen can make use of this framework to avoid repetition of code.

As I am using ui router i thought to create a parent state which is the base and it is inherited by child.so parent controller will have all the common code and actions.

Is this approach correct?

Aucun commentaire:

Enregistrer un commentaire