Malcr001
Malcr001

Reputation: 8289

requirejs and angularjs for non single page web apps?

I have individual pages and initially I wanted to use angularJS because of data binding and the many other neat features. I also ended up using requireJS simply to help me manage my dependancies better as the list of javascript libraries I'm using is growing.

My question is using AngularJS with requireJS a no no for non single page web apps?

Upvotes: 2

Views: 888

Answers (1)

mnsr
mnsr

Reputation: 12437

It's not a no-no. You can definitely use angular on non-single page apps. You just will lose a lot of the functionality - ie the stuff between "pages". You app will essentially be recreated on every page.

I've used angular for a multi-page site (basically a product search engine), with each page being separate. I used GET and POST to transfer stuff across pages, but ultimately, I wanted to use angular for rendering the content on the page because it's just neat and clean.

Upvotes: 5

Related Questions