I am working on a separate user-defined scope directive that has several different states. Does it make sense to use ui-router / ui-view inside this directive to handle states?
This is a “note widget” listing notes. If there are no notes, it displays a message instead of a list, which says that they should add a note. If notes are loading, this indicates that notes are loading. If the user adds a note by clicking the add mentioned above, or +, then the view is a text field. Thus, there are at least 4 different species.
My initial instinct is that it will pollute the directive and make it hard dependent on ui-router and my application, as it determines the state. Did I just survive?
angularjs angular-ui-router
Mike haas
source share