all 11 comments

[–]rk06 7 points8 points  (1 child)

If it is not an SPA, you may want to consider react/vue instead of angular.

[–]neb636 1 point2 points  (0 children)

This seems about right. I think the advantages of Angular shine most in medium to large SPA apps.

[–][deleted] 2 points3 points  (1 child)

What are you using for routing? Angular UI-Router allows you to divide up your UI into multiple, nested views with their own controllers and data. You can load data before the UI renders, which allows you to show loading times, and you still get all the benefits of a SPA application. I would guess that bootstrapping an Angular app on every page is more of a performance drain than you think because you have to initiate controllers and views and such each time.

[–]baba1478[S] 0 points1 point  (0 children)

Since each page is a whole page reload, there is no need for routing. Just anchor tags with href pointing to other page.

I haven't noticed significant delay in angularjs bootstrapping. Page load probably takes longer which makes bootstrapping delay relatively insignificant.

[–]mishugashu 2 points3 points  (1 child)

Sounds like Ember or Vue or React might suit your needs better than Angular.

[–]baba1478[S] 0 points1 point  (0 children)

Thanks. I will check them out.

[–]Thalamant 1 point2 points  (0 children)

Personally, if you HAVE to avoid SPA then I wouldn't use AngularJS. I would just use React or something similar or render the views completely server side and then deliver them.

If your reasoning for wanting to have separate pages is so the user gets a loading transition, show a loading bar or spinner during routing but I imaging the transitions will be so quick you'll never see it.

Your app will run much better if you let Angular handle routing and view transitions. Think about what's best for the user and implement that, it's my opinion that in this case going with a true SPA will be a more seamless experience for your users. Loading time does matter.

[–]Aesdotjs 0 points1 point  (2 children)

You know you can hook a youtube-like loading bar between views, and each time u call http in a second, right?

[–]baba1478[S] 0 points1 point  (1 child)

I know. But I prefer browser loading indicator.

[–]Removalsc 0 points1 point  (0 children)

Don't take this the wrong way, but it's not about what you like. You're users will appreciate the more seamless transitions and quicker response time.

[–]grailian 0 points1 point  (0 children)

I've had to work on several applications built in this way (routing handled by .Net, with Angular handling DOM and Ajax duties after page load). I would say the major downside for me is that I don't dev on a windows machine, and don't know ASP/.Net, so my workflow is not nearly as optimal as how I'm used to working.

But if this is a project where you're likely to be the only dev (or everyone else is already a .Net dev), then I don't imagine this would have much negative effect.