Thanks Sander!
Le mercredi 6 mai 2015 14:01:53 UTC+2, Greg a écrit :
>
> Hi
>
> I am looking for suggestions on how to use the New Router for creating
> routes dynamically from a DB.
>
> I.e. we have a website:
>
> - {
> - "_id": "553e2d15f91e4bd75d000008",
> - "siteTitle": "mySite",
> - "template": "myTemplate",
> -
> "pages": [
> - "553e2d15f91e4bd75d000009",
> - "553e2d15f91e4bd75d00000a"
> ]
> }
>
>
> and pages:
>
> - {
> - "_id": "553e2d15f91e4bd75d000009",
> - "pageTitle": "Welcome on my site",
> - "menuItem": "Home",
> - "content": "<p>Nullam quis risus eget <a href=\"#\">urna mollis
> ornare</a> vel eu leo. Cum sociis natoque penatibus et magnis dis
> parturient montes. Nullam id dolor id nibh ultricies vehicula.</p>,"
> - "layout": "home",
> - "url": "home",
> - "siteID": "553e2d15f91e4bd75d000008",
> }
>
>
> What do you advice for creating components for each pages?
>
> Regards
> Greg
>
--
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.