I'm aware that Angular filters can only be applied to arrays, not objects
I'm attempting to include templates added dynamically using the following code. All seems to work well until you see the order
What I would like to have this order:
Create
Book
Address
here is the Plunker
seems like angular will get
ng-include
by ordering the names according to their name,so when you use
ordering
template
according to their names, then_address comes first
_book comes second
_create comes third
simple approach to solve
here is the Plunker
Instead of using a key-value object, why not use an array?
ng-repeat
orders the iteration by the index of the iterated object/array.FORKED DEMO