Hi Greg, I reworked it. You really should read John Papa's styleguide! <https://github.com/johnpapa/angular-styleguide>
Here is a working plunk <http://plnkr.co/edit/0zdNzOUEcmvBk1SdtJQf?p=preview>. The design of the template json is not easy to parse. As this is way out of the scope of this question, I just ignored that and returned the complete pages object, in stead of just a template string. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
