Separate Apps or One General App?

7 views
Skip to first unread message

Paul

unread,
Sep 26, 2020, 12:01:49 PM9/26/20
to Angular and AngularJS discussion
Good morning,

I'm creating my site using AngularJS 1 which will have separate pages / apps.

Ex:   

Each of these will be using their own set of ngRoutes (I plan to upgrade to UI Router soon, but that's a conversation for another time)

Each of these will be deriving from the same master html template (index.html for these purposes)

Should I create one siteapp.js and put it in index.html and derive my applications from that? Or should I create an individual app.js for each app?

ex:
    siteapp.js -> and use for basis for all apps
or
    app.js -> individual for each app?


Thanks!
Reply all
Reply to author
Forward
0 new messages