I plan to generate an Atom feed inside my AngularJS controller. A want to generate a view, but not on the server-side, because I want to replace the URI with a new AngularJS route.
Now I know how to write XML with JavaScript, but I have no idea about how to returning a XML content without a view.
My route setting is quite normal like below. It uses templateUrl
to render a partial view.
.when('/posts', {
templateUrl: 'theme/post_list.html',
controller: PostsController
})
Is it possible to serve XML content without a view using AngularJS? Like so:
.when('/posts.atom', {
controller: PostsController
})
Generating the angular.js routed Atom feed on the server-side is possible, but I don't want it.