3 ms·
AngularJS is very interesting, simple and powerful, but can anyone give some insights of how to properly use it for just a part of the website? I don't want to
by hanula 14y ago
AngularJS is very interesting, simple and powerful, but can anyone give some insights of how to properly use it for just a part of the website? I don't want to have JS only webapp, but to serve full server-generated pages. Or maybe it's wrong tool for the job?
- marknutter 14y agoIt works just fine for that purpose. Just include angular.js and add an ng-app and ng-controller directive to a div you want angular to be concerned about and you're on your way. We are going to transitioning our javascriptMVC app over to an angular.js app piecemeal by following the same strategy.
- johnbellone 14y agoWe have been using it quite successfully for a interactive application. Independent of Angular Bootstrap we have made our own reusable widgets for common and generic components such as modals. I actually haven't thought of using it for static pages but that poses an interesting experiment to try with my blog. It could bridge the gap often seen with non-interactive pages - mainly caching on S3+CF and yet wanting to pull in a Twitter feed. Some things to mull on for sure.