In my opinion, this is redundant.Angular already have his own $compile function, fully integrated with scope, directives, cache etc.You will add some unnecessary complexity to manipulate templates if you want to use hogan.js. And will miss one of coolest angular.JS features.PS: to make compatibility with IE, use ng as attribute, instead of use as tags. If you want to use tag anyway, just 'register' them using document.createElement (http://docs.angularjs.org/guide/ie).
Em segunda-feira, 16 de julho de 2012 05h25min48s UTC-3, Abdul Azeez escreveu:To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/Ik3XB3bkukIJ.Dear all,--I am pretty new to Angular.js and found it very interesting to use it in my application. I have few queries which i couldn't find answers yet.From the docs, it looks Angular.js provides its own templates. Also, i read some where 'ng' tags are not yet compatible with IE web browser. Please correct me if i am wrong.Can i use hogan.js for templates and Angular.js for mvc? Kindly let me know pros and cons for this approach.Appreciate any help regarding this.Thanks,Abdul
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
When you say pre-compile in server side, you means nodejs + hogan?About reduce the size of lib, removing features from the framework... I dont recommend it, but its not impossible (their source is open...)
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/sv86b4oPsvcJ.
Angular is not a templating language like Hogan.Take the ng-repeat tag for example:
<ul ng-controller="MyController">
<li ng-repeat="item in myList">{{item}}</li></ul>Unlike a server-side templating language, this will not just get compiled then statically rendered. Angular (on the client), reads through the DOM and finds the ng-repeat tag, hooks it up to the MyController Javascript object, and whenever MyController's scope's myList changes, it appends/removes/re-orders the list accordingly.Angular is way different from a templating language, it's more of an HTML parser that works live with your Javascript in the browser
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/6nUHMj99PWcJ.
Angular does have navigation built in, you should check out angular-phonecat, the main tutorial app. Check https://github.com/angular/angular-phonecat, in app/js/app.js, to see the routing. I would highly recommend giving the tutorial (which makes the angular-phonecat app) at least a quick go-over: http://docs.angularjs.org/tutorialAnd it is probably about the same difficulty for your HTML designer to use the ng- tags as it is to throw in a templating language and Backbone. The thing with Angular is, your coder will write the logic, and your HTML write out how that logic is rendered. There is no 'middle man', unlike BackboneView.render().
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/uUQfz8D2ZfwJ.