This has long been a question of mine since I got my hands on AngularJS.
Yes, AngularJS offers a thorough separation between the presentation and the undermine logic. However, I find myself in such a dilemma where sometimes I really can't resist the temptation to manipulate some DOM elements directly from my service, which is obviously not best practice because AngularJS recommends doing it in directives, which I find quite exhausting, especially in situations where I would like to create apps with an immersive experience.
Recently I'm engaged in a native app project using node-webkit. We want to build a multi-document app with HTML5 and Node.js, taking advantage of AngularJS. But I cannot figure out a way of achieving this. As far as I'm concerned, even nested views are neither easy to create nor recommended with AngularJS, let alone multi-windows.
In the meanwhile, I find Backbone quite satisfying in this respective. However, I still prefer AngularJS for other reasons.
So what do you think? Is there any solution to this problem? Is there any open-source project out there? Code examples are also greatly appreciated. Thx in advance.