Misko Hevery
dd7b0f56fc
fix(ng-cloak): work with class
2012-03-08 16:30:39 -08:00
Vojta Jina
b3750103cc
fix($parse): Allow property names that collide with native object properties
...
I.e. constructor, toString, or watch on FF
(https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch )
+ optimize parser a bit to not create getter function for operators
2012-03-08 11:39:03 -08:00
Vojta Jina
b348347dad
refactor(fromJson): Remove error() and just throw
...
It's more likely you are using angular.fromJson() inside Angular world, which means you get proper
exception handling by $exceptionHandler.
There is no point to explicitly push it to console and it causes memory leaks on most browsers
(tried Chrome stable/canary, Safari, FF).
2012-03-08 11:38:14 -08:00
Igor Minar
512db03cc0
docs(ng-list): update the ng-list directive docs
2012-03-08 11:06:15 -08:00
Igor Minar
772ddb983b
docs(directive, module): add various missing docs and fix existing docs
2012-03-08 11:06:14 -08:00
Igor Minar
7f6c1093f5
docs(ng-view): improve the ng-view docs
2012-03-08 11:06:14 -08:00
Igor Minar
08ad4b6a46
docs(jqlite): add docs for wrap()
2012-03-08 11:06:14 -08:00
Igor Minar
e0ace15cd3
docs($rootScope): rename ttl to digestTtl + docs
2012-03-08 11:01:22 -08:00
Misko Hevery
6a98c52c84
chore(compiler): change default restriction to attribute only for directives
2012-03-08 10:07:49 -08:00
Vojta Jina
64912069ca
docs(mock.inject): Fix the example
...
And explicitly say that you need to load your application modules that you wanna test.
2012-03-05 19:28:03 -08:00
Vojta Jina
b49ddf9848
docs($route, ng:view): Fix the examples to work on jsfiddle, update docs
2012-03-05 19:15:18 -08:00
Vojta Jina
c2989f6cc6
fix(ng-include): Compile only content
2012-03-05 10:41:59 -08:00
Stephane Bisson
e86bafecd2
fix(mock.TzDate): getDay() takes into account the timezone offset
2012-02-29 15:53:51 -08:00
Marcello Nuccio
e68c02c537
docs($cacheFactory): Correct method's description
2012-02-29 15:48:37 -08:00
Marcello Nuccio
25d207c48c
docs($injector): Correct provider suffix to "Provider"
2012-02-29 15:46:55 -08:00
Vojta Jina
4370d756e4
refactor(directive.ngModel): rename emitValidity -> setValidity
2012-02-28 18:22:41 -08:00
Vojta Jina
4e83399570
fix(ng:model-instant): defer only keydown, throttle setTimeouts
2012-02-28 18:22:41 -08:00
Vojta Jina
e7d6106811
fix(input): Render 0 (number) as 0 (not empty string)
2012-02-28 18:22:41 -08:00
Vojta Jina
c4c60c25b4
reafactor: Rename ng:bind-immediate -> ng:model-instant
2012-02-28 18:22:41 -08:00
Vojta Jina
139e1b09a9
docs(forms): Update API docs for forms
...
- API forms (ng:model + controller, form + controller)
- fix some broken links
- ng:change, ng:model-instant
2012-02-28 18:22:35 -08:00
Vojta Jina
60743fc52a
feat(ng:include) Fire $contentLoaded event
...
+ refactor unload to listen on this event -> we can use unload with ng:view as well
Closes #743
2012-02-28 17:48:07 -08:00
Vojta Jina
9486590e1b
refactor(ng:view) Make $route scope agnostic, add $contentLoaded event
...
Problems:
- controller was instantiated immediately on $afterRouteChange (even if no content), that's
different compare to ng:controller, which instantiates controllers after compiling
- route listened on current scope ($afterRouteChange), so if you were listening on $rootScope
($afterRouteChange), you get called first and current.scope === undefined, which is flaky
- route handles scope destroying, but scope is created by ng:view
- route fires after/before route change even if there is no route (when no otherwise specified)
Solution:
- route has no idea about scope, whole scope business moved to ng:view (creating/destroying)
- scope is created (and controller instantiated) AFTER compiling the content
- that means on $afterRouteChange - there is no scope yet (current.scope === undefined)
- added $contentLoaded event fired by ng:view, after linking the content
2012-02-28 17:46:58 -08:00
Misko Hevery
e31d1c287d
refactor($route): remove .parent(); ng:view scope creation
2012-02-28 17:46:58 -08:00
Misko Hevery
f16bd2f747
refactor($route): move when/otherwise to provider
2012-02-28 17:46:58 -08:00
Misko Hevery
ef7346ff70
docs(scope): correct formatting
2012-02-28 17:46:58 -08:00
Misko Hevery
f6fb31e8ad
chore(ng:view): simplify, by taking advantage of new compiler features
2012-02-28 17:46:58 -08:00
Vojta Jina
21c725f1a1
refactor(forms): Even better forms
...
- remove $formFactory completely
- remove parallel scope hierarchy (forms, widgets)
- use new compiler features (widgets, forms are controllers)
- any directive can add formatter/parser (validators, convertors)
Breaks no custom input types
Breaks removed integer input type
Breaks remove list input type (ng-list directive instead)
Breaks inputs bind only blur event by default (added ng:bind-change directive)
2012-02-28 17:46:58 -08:00
Vojta Jina
e23fa768aa
docs(directive.script): Subtle update to API docs
2012-02-28 17:41:37 -08:00
Vojta Jina
d656d11489
feat(directive.style): Do not compile content of style element
2012-02-28 17:41:30 -08:00
Vojta Jina
b37e8a2b14
docs(directive.script): Add simple example of inlined template
2012-02-28 14:15:44 -08:00
Vojta Jina
4c1c50fd9b
fix(directive.script): Do not compile content of script tags
2012-02-28 14:15:44 -08:00
Vojta Jina
5b0d068358
fix($http): Do not serialize File object
2012-02-25 18:49:54 -08:00
Vojta Jina
230f29d0a7
fix(jqLite): set event's monkey patched methods to null (on IE7)
2012-02-23 23:41:41 -08:00
Vojta Jina
3171f21591
fix($httpBackend): Set current url, if not defined or empty string
...
Reason to fix this was the fact that with undefined url, it ended up with weird exception
(Cannot call method 'replace' of undefined), which was more confusing than helpful.
jQuery.ajax() does request to current url, if url is not specified, so I decided for this solution.
2012-02-23 22:50:02 -08:00
Misko Hevery
d6e3e1baab
feta(scope): watch object refference or equality
...
Breaks: Must set $watch equality to true for the old behavior
2012-02-23 15:01:08 -08:00
Misko Hevery
ffa8441886
bug(equals): incorect comparison of dates
2012-02-23 13:57:28 -08:00
Misko Hevery
80edcadb1d
feat($provide): added constant
2012-02-22 13:28:42 -08:00
Misko Hevery
c27a56f4da
docs(scope): show which directives create scopes
2012-02-22 12:59:23 -08:00
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