Misko Hevery
fbcb7fdd14
fix($injector): circular dependency instatiation
2012-02-22 11:32:09 -08:00
Vojta Jina
fa69d10122
docs(ng:app): Move to other directives namespace
2012-02-22 11:09:33 -08:00
Vojta Jina
dd321c5f4d
docs(scope): update $emit/$broadcast docs
2012-02-22 10:24:40 -08:00
Misko Hevery
656a495e50
refactor(directive): use attrs.$observe
2012-02-21 22:46:01 -08:00
Vojta Jina
6d0ca95fa0
feat($compiler): Allow attr.$observe() interpolated attrs
2012-02-21 22:46:01 -08:00
Misko Hevery
3df7b8e57f
fix(ng:repeat): use transclusion
2012-02-21 22:46:01 -08:00
Misko Hevery
7bd69d0f5b
chore(ng:switch): rewritten with transclusion API
...
BREAKING CHANGE: the change event fires on scope of switch not on scope of case.
2012-02-21 22:46:01 -08:00
Misko Hevery
78656fe0df
feat($compile) add locals, isolate scope, transclusion
2012-02-21 22:46:00 -08:00
Misko Hevery
cb10ccc44f
feat($compile): mark scope creation with ng-scope class
2012-02-21 22:46:00 -08:00
Misko Hevery
4a051efb89
feat($compile): support compiling text nodes by wrapping them in <span>
2012-02-21 22:46:00 -08:00
Misko Hevery
1752c8c44a
feat(directive): event now accessible as $event
...
Closes 259
2012-02-21 22:46:00 -08:00
Misko Hevery
6216dc0465
chore(select): remove inherit, replace with expression locals
2012-02-21 22:45:59 -08:00
Misko Hevery
761b2ed85a
feat(parse): add support for local vars in expressions
2012-02-21 22:45:59 -08:00
Misko Hevery
c8ee631c19
feat(mouseenter/mouseleave): emulating ie events
2012-02-21 22:45:59 -08:00
Misko Hevery
cae9ad4ba9
docs(decorator): add missing decorate docs
2012-02-21 22:45:59 -08:00
Misko Hevery
85b2084f57
fix(select): double array issue with multislect and jQuery
2012-02-21 22:45:59 -08:00
Misko Hevery
13b21aaf5a
fix(doc): example was referring to non existent CSS
2012-02-21 22:45:59 -08:00
Vojta Jina
6e635012fb
feat(scope): scope.$emit/$broadcast return the event object, add cancelled property
2012-02-21 10:58:48 -08:00
Misko Hevery
eb92735c9e
fix(injector) .instantiate([Type]) produced wrong result
2012-02-16 14:32:52 -08:00
Vojta Jina
776739299b
fix($injector): instantiate returns instance, if non-object value returned from constructor
2012-02-08 16:12:11 -08:00
Vojta Jina
3173d8603d
fix(jqLite): fix memory leaking in IE8 (remove monkey patched methods on Event)
...
These methods cause IE8 holds the whole jqLite in the memory, even when page is reloaded.
jqLite's cache keeps element's data (event handlers, attached scopes, injector, etc…), so almost all used memory is never released in IE8.
jQuery creates its own Event object (wrapper around native Event) instead.
2012-02-05 00:09:02 -08:00
Igor Minar
8b32900d72
fix($parse): simplify getterFn
2012-01-25 16:52:39 -08:00
Igor Minar
18a1e860a3
fix($parse): small fixes
...
- typos
- dead code removal
- remove unneeded variable
2012-01-25 16:17:44 -08:00
Igor Minar
39b3297fc3
fix($parse): get rid of $unboundFn
...
Closes #731
2012-01-25 16:17:43 -08:00
Misko Hevery
1268fc1a44
cleanup($scope): remove $$scope ref.
2012-01-25 11:54:00 -08:00
Misko Hevery
4804c83b7d
docs(compiler): update the compiler docs
2012-01-25 11:53:59 -08:00
Misko Hevery
e2b1d9e994
feat(scriptTemplateLoader): provide template inlining
...
populates $templateCache with content of ng-template scripts
2012-01-25 11:50:37 -08:00
Misko Hevery
9ee2cdff44
refactor(directives): connect new compiler
...
- turn everything into a directive
2012-01-25 11:50:37 -08:00
Misko Hevery
8af4fde182
add($compile): add compiler v2.0 - not connected
2012-01-25 11:46:36 -08:00
Misko Hevery
5001c1a121
refactor($interpolate): improve interpolation service add documentation
2012-01-25 11:46:36 -08:00
Misko Hevery
0f6b2ef982
refactor(sanitizer): turn sanitizer into a service
2012-01-25 11:46:35 -08:00
Igor Minar
1e96d0af8c
fix(injector): small perf improvement & code cleanup
2012-01-25 11:46:35 -08:00
Misko Hevery
97dae0d0a0
feat(jqLite): add contents()
2012-01-25 11:46:35 -08:00
Misko Hevery
84823b2eff
feature($exceptionHandler): $exceptionHandler now supports var_args
2012-01-25 11:46:34 -08:00
Kai Groner
56bcc04c54
feat(ng:class): support using map of classnames and conditions
...
enables <div ng:class="{'hide': !visible, 'warning': isAlert()}"...
2012-01-24 10:28:29 -08:00
Igor Minar
b2052d08a1
fix($parse): fixing typos in JS_KEYWORDS
2012-01-23 22:33:28 -08:00
Igor Minar
7da2bdb82a
fix(scope): support watching functions
...
currently we run into infinite digest if a function is being
watched as an expression. This is because we generate bound
function wrapper when the watch is processed via parser.
I'm not too keen on the solution because it relies on the unbound
fn that is being exposed for other reasons, but I can't think
of a better way to deal with this right now
2012-01-23 22:33:28 -08:00
Vojta Jina
dbffbefb7c
refactor($controller): Add $controller service for instantiating controllers
...
So that we can allow user to override this service and use BC hack:
https://gist.github.com/1649788
2012-01-23 13:11:12 -08:00
Vojta Jina
0196411dbe
refactor(scope.$watch): rearrange arguments passed into watcher (newValue, oldValue, scope)
...
As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense…
Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
2012-01-23 11:11:27 -08:00
Vojta Jina
992c790f07
refactor(scope): separate controller from scope
...
Controller is standalone object, created using "new" operator, not messed up with scope anymore.
Instead, related scope is injected as $scope.
See design proposal: https://docs.google.com/document/pub?id=1SsgVj17ec6tnZEX3ugsvg0rVVR11wTso5Md-RdEmC0k
Closes #321
Closes #425
Breaks controller methods are not exported to scope automatically
Breaks Scope#$new() does not take controller as argument anymore
2012-01-23 11:05:36 -08:00
alkis
f5343c9fd3
docs($http): fix missing quote
2012-01-22 00:30:39 -08:00
Igor Minar
efe33a5e21
docs($http): doc fixes suggested by Gina
2012-01-19 12:39:05 -08:00
Igor Minar
3f98d6ac99
docs(*): more docs
2012-01-17 12:19:26 -08:00
Konstantin Stepanov
e1e7aca9a6
fix($locationProvider) hashPrefix's getter returned html5Mode + doc fix
2012-01-17 11:21:20 -08:00
Igor Minar
92af30ce6e
docs(*): various doc fixes
2012-01-17 09:49:37 -08:00
Igor Minar
54581d36df
fix(e2e $httpBackend): use browser.defer instead of $defer
...
this is necessary to avoid $apply from within $apply situations
2012-01-16 23:26:44 -08:00
Igor Minar
b587091b6e
feat(jqLite): added injector() helper method
2012-01-16 02:17:27 -08:00
Vojta Jina
c49b8a2db5
fix($location): do not $digest if browser's url change fired within $apply/$digest
...
Chrome (probably other browsers as well) fires 'hashchange' event synchronously, so if you change raw location from within $apply/$digest, we don't want to $apply twice. (It would throw an exception)
2012-01-14 11:23:12 -08:00
Misko Hevery
5cdfe45aa3
feat(module): add runtime block
2012-01-13 14:28:43 -08:00
Igor Minar
16a40c626f
style(*): small fixes
2012-01-13 14:28:21 -08:00