vojtajina | 13 years ago | on: Ask HN: AngularJS vs Backbone vs Ember?
vojtajina's comments
vojtajina | 13 years ago | on: AngularJS 1.0 released
Btw, here's my point: The reason, why you want valid html, is to be able to use some html validator, which is super helpful, when finding bugs like unclosed div etc. However, if you prefix all the custom attributes with data-* you only get these attributes ignored, not validated. For example if you type data-ng-rrepeat="", the validator won't catch it.
So I would rather extend html validator to accept new tags/attributes in some format, say JSON, so that during the build process of your app, you can get all the directives your app defines and validate them. Then you get even your custom directives validated. I believe that's the way to go.
vojtajina | 13 years ago | on: AngularJS 1.0 released
Angular does dirty checking at the right moment.
After you bootstrap your app, nothing happens, unless: - user interacts (DOM event is fired) - response from server is back (xhr callback) - setTimeout fires - couple of other minor async stuff
So you only need to dirty check when some of these events occur and that's exactly what Angular does. Check out scope.$digest method, that's where all this stuff happens.
vojtajina | 13 years ago | on: AngularJS 1.0 released
Having couple of util methods (forEach, isFunction, etc...), is just so that Angular can work without any other dependency, which many projects actually do. However you are free to use underscore, jquery and other libraries...
Jasmine ? Yep, we like it and we use it. Angular DOES use jasmine as its unit testing framework + we provide some helpers to make your life with jasmine + angular easier. But again, you can use any testing framework you like.
Angular is server agnostic. However, we have some ideas and plans how to do server side prerendering, so I believe it will come...