Misko Hevery
e88dfb734a
refactor(injector): $injector is no longer a function.
...
- $injector('abc') -> $injector.get('abc');
- $injector(fn) -> $injector.invoke(null, fn);
2011-11-14 20:31:19 -08:00
Misko Hevery
8d6dc0b9a7
del($eager): removed the support for $eager services
2011-11-14 20:31:19 -08:00
Vojta Jina
acbd7cdf32
style(docs): make jslint happy - fix some warnings
2011-11-14 20:31:19 -08:00
Misko Hevery
186a840cd3
feat(bootstrap): added angular.bootstrap method
2011-11-14 20:31:18 -08:00
Misko Hevery
b09595a3c1
fix(doc) cleanup all api doc link warnings
2011-11-14 20:31:18 -08:00
Vojta Jina
5279de0e70
fix($location): links without path segment should not change the path
...
Closes #648
2011-11-14 20:31:17 -08:00
Misko Hevery
1cc6bee4ce
docs(browser): moved and migrate browser removed unneeded files.
2011-11-14 20:31:17 -08:00
Misko Hevery
a8aa193c6b
doc($rootScope): scope documentation changes
2011-11-14 20:31:17 -08:00
Misko Hevery
e45b013143
doc(locale): migrate docs to new format
2011-11-14 20:31:16 -08:00
Misko Hevery
ea18f4548d
doc($formFactory): migrated the $formFactory documentation
2011-11-14 20:31:16 -08:00
Misko Hevery
57c37a21d1
doc(service): update docs for the moved services
2011-11-14 20:31:16 -08:00
Misko Hevery
74fac45f48
doc($filter): added $filter documentation
2011-11-14 20:31:16 -08:00
Misko Hevery
f0fa5e6376
doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK module
2011-11-14 20:31:16 -08:00
Misko Hevery
c283bf6035
refactor($location): merged $locationConfig service into $locationProvider
2011-11-14 20:31:15 -08:00
Misko Hevery
b3c17f3fdc
chore(scope): remove $service
2011-11-14 20:31:15 -08:00
Misko Hevery
9c06394376
chore(scenario tests): make scenario tests pass again
2011-11-14 20:31:15 -08:00
Misko Hevery
085e3c611f
new(directive): added ng:module directive for loading modules
2011-11-14 20:31:15 -08:00
Misko Hevery
4b35a59c6a
refactor(scenario): fix scenario bootstrap & publish injector for inspection
2011-11-14 20:31:14 -08:00
Misko Hevery
7cb03c5ab9
chore(angular): clean up unused constants
2011-11-14 20:31:14 -08:00
Misko Hevery
78c7066422
refactor(angular): isDate / isArray test iframe independent fix
2011-11-14 20:31:14 -08:00
Misko Hevery
923da410bd
fix(i18n): updated the way locale is being registered
2011-11-14 20:31:14 -08:00
Misko Hevery
a87f2fb9e4
refactor(mock): moved mocks into its own module
2011-11-14 20:31:14 -08:00
Misko Hevery
c27aba4354
refactor(api): remove type augmentation
...
BREAK:
- remove angular.[Object/Array/String/Function]
- in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
2011-11-14 20:31:14 -08:00
Misko Hevery
dd9151e522
refacter(filters): convert filter/limitTo/orderBy from type augmentation to filters
2011-11-14 20:31:13 -08:00
Misko Hevery
3972d2a89b
refactor(json): break dependence on api.js
2011-11-14 20:31:13 -08:00
Misko Hevery
cb6f832f38
refactor(filter): filters are now injectable and services
...
BREAK:
- removed CSS support from filters
2011-11-14 20:31:09 -08:00
Misko Hevery
6022f3df39
move(filters): appease the History God
2011-11-14 16:39:34 -08:00
Misko Hevery
7c11531902
refactor(parser): turn parser into a service (keep compatibility hack)
2011-11-14 16:39:33 -08:00
Misko Hevery
c6d2549a52
fix(JSON): json date parsing same native/ngular parser
2011-11-14 16:39:33 -08:00
Misko Hevery
bee6060e4b
move(parser): appease the History God
2011-11-14 16:39:33 -08:00
Misko Hevery
16597e8b52
refactor($service): removed almost all references to scope.$service
...
- still need to remove from factory
2011-11-14 16:39:33 -08:00
Misko Hevery
f684f20c99
cleanup(parser): removed unused method
2011-11-14 16:39:33 -08:00
Misko Hevery
bd04316a89
refactor(services): migrate angular.service -> module
2011-11-14 16:39:33 -08:00
Misko Hevery
ed36b9da3b
refactor(injector): switch to injector 2.0 introduce modules
2011-11-14 16:39:32 -08:00
Misko Hevery
c925f8a657
new(injector): new injector v2.0
...
- not connected to keep the CL small
2011-11-14 16:39:32 -08:00
Misko Hevery
4c10d33eb4
refactor(api): cleaned up the externalization of angular API methods
2011-11-14 16:39:32 -08:00
Misko Hevery
9062996a0e
feat(injector): support $inject(fn($service){}) function invocation
2011-11-14 16:39:32 -08:00
Misko Hevery
411c1ae77e
feat(injector): support ['$service', function($service){}] annotations for function invocation.
2011-11-14 16:39:32 -08:00
Misko Hevery
d12df0d360
refactor(compiler) turn compiler into a service
...
BREAK
- remove angular.compile() since the compile method is now a service and needs to be injected
2011-11-14 16:39:32 -08:00
Misko Hevery
d9b58f23f6
move(compiler): appease the History God
...
- renamed: src/Compiler.js -> src/service/compiler.js
- renamed: test/CompilerSpec.js -> test/service/compilerSpec.js
2011-11-14 16:39:32 -08:00
Misko Hevery
03dd8c4f4c
feat(injector): Service look up failures include dependency path
2011-11-14 16:39:32 -08:00
Misko Hevery
48697a2b86
refactor(injector): turn scope into a service
...
- turn scope into a $rootScope service.
- injector is now a starting point for creating angular application.
- added inject() method which wraps jasmine its/beforeEach/afterEach,
and which allows configuration and injection of services.
- refactor tests to use inject() where possible
BREAK:
- removed angular.scope() method
2011-11-14 16:39:31 -08:00
Misko Hevery
93b777c916
move(scope): appease the History God
...
- renamed: src/Scope.js -> src/service/scope.js
- renamed: test/ScopeSpec.js -> test/service/scopeSpec.js
2011-11-14 16:39:31 -08:00
Misko Hevery
fc7834f9ac
cleanup(parser): remove unused method
2011-11-11 13:04:26 -08:00
Igor Minar
1e00db8daa
fix(directives): make directive names case-insensitive
...
+ tests
+ added docs for angular.directive
2011-11-08 21:44:46 -08:00
Dhruv Manek
e2663f62b0
feat(ng:style): compatibility + perf improvements
...
- better compatibility with 3rd party code - we clober 3rd party
style only if it direcrtly collides with 3rd party styles
- better perf since it doesn't execute stuff on every digest
- lots of tests
2011-11-08 02:25:22 -08:00
Igor Minar
9f9ed4c5ff
docs(ng:bind-attr): improve examples
2011-11-08 02:23:51 -08:00
Igor Minar
84873e7f4e
fix(angular-bootstrap): fix boostrap scripts that broke w\ 5a2dcb9a
...
Commit 5a2dcb9a doesn't properly modify angular-boostrap.js.
This fix resolves issues and makes both the regular and scenario
version of angular-boostrap.js functional.
2011-10-31 11:34:25 -07:00
Igor Minar
ef875ad0cf
feat(scope): better logging of infinite digest error
...
Feedback team has often problems debugging inifinite digest errors, this change
should reveal info about what watchers are causing the infinite loop
2011-10-31 11:34:25 -07:00
Vojta Jina
7d0c256ecd
docs(jqlite): add missing methods
2011-10-30 22:31:03 -07:00
Vojta Jina
dc8ffa51b7
fix(scenario.dsl): Fix dsl for $location
...
New $location does not have hashSearch, hashPath.
The old dsl was mixing $location / window.location so this solves the problem as well...
2011-10-26 15:58:59 -07:00
Igor Minar
d7ba5bc83b
feat(bootstrap): drop angular.js file name restrictions for autobind
...
The last script element in the dom is always us if the script that
contains angular is loaded synchronously.
For async loading manual bootstrap needs to be performed.
Close #621
2011-10-26 12:57:15 -07:00
Igor Minar
af7c51ee1d
style(Angular.js): various code style fixes
2011-10-26 12:57:14 -07:00
Igor Minar
25d1822bd8
style(HashQueueMap): fixing a typo in the comment
2011-10-26 12:54:00 -07:00
Igor Minar
3945f884c5
fix(ng:repeat) with array ignore properties not representing array elements
...
Along the way I also changed the repeater impl to use for loop instead
of for in loop.
Iteration over objects is handled by creating an array of keys, which is
sorted and this array then determines the order of iteration over an
element. This makes repeating over objects deterministic and
cross-browser compatible.
2011-10-26 12:54:00 -07:00
Igor Minar
d5ccabce60
fix(ng:view): ignore stale xhr callbacks
...
A lot of badness happens when we don't ignore stale xhrs. These
raceconditions are only apparent when user clicks through the app very
quckly without waiting for routes to fully load.
Closes #619
2011-10-26 12:15:07 -07:00
Dhruv Manek
163c799eff
fix(angular.widget): Allow widgets to be styled in IE8 and below
...
Closes #584
2011-10-24 23:28:36 -07:00
Vojta Jina
7da70af1ae
fix(scenario): Change title to "AngularJS"
2011-10-24 14:03:50 -07:00
Igor Minar
bacc31bea9
fix(defer.cancel): should return false instead of undefined
2011-10-22 21:32:48 -07:00
Igor Minar
ad90c3574f
feat($defer): add $defer.cancel
...
This functionality was previously available only as obscure $browser.defer.cancel.
I also added docs and tests and fixed an issue in .defer.cancel mock.
2011-10-22 21:32:48 -07:00
Vojta Jina
9b85757102
fix($location): rewrite links with nested elements
...
For example:
<a href="some/link">inner <span>text</span></a>
If you click on "text", then the span element is event.target, so we need to traverse the DOM.
2011-10-22 15:35:18 -07:00
Igor Minar
c6c3949b14
feat(filter.date): use mediumDate as default
...
Breaking change!
Previously the default was fullDate.
2011-10-20 16:51:28 -07:00
Igor Minar
e175db37c6
fix(date filter): default to fullDate format
...
The browser's behave inconsistently, so we should just stick to one format
when the format is not specified by the developer
Closes #605
2011-10-20 16:51:28 -07:00
Igor Minar
f38010d3a2
fix(compiler): revert 8611ebe6 - calling \$digest after linking
...
Change introduced by me in 8611ebe6 results in considerable inefficiencies when the compiler
and linker is used from within a widget, in which case, we call $digest unnecessary since it
will be called by the $apply which called the directive/widget in the first place.
There are only two places when the extra $digest call can be useful - when manually bootstrapping
the app or in tests. However even in tests this behavior can result in unwanted results (especially
when ng:controller is involved). So it is better to leave it for the developer to call $digest
when it is really needed.
2011-10-20 15:51:14 -07:00
Misko Hevery
7fc18b263d
fix(radio): allows data-binding on value property. Closes#316
2011-10-20 11:30:40 -07:00
Igor Minar
fabc9f77a3
feat(sanitizer): add html5 elements to the whitelist
...
Closes #89
2011-10-20 09:44:52 -07:00
Igor Minar
c17c731fdc
style(select): cleaning up select.js
2011-10-19 22:52:14 -07:00
TEHEK Firefox
3692885810
fix(ng:options): compile null/blank option tag
...
Fixes #562
2011-10-19 22:52:14 -07:00
Igor Minar
5d43439dbe
fix(ng:pattern): correctly parse out inlined regexp
2011-10-19 21:52:20 -07:00
Igor Minar
a46f2a0db3
docs(textarea): add docs for angular.widget.textarea
2011-10-19 16:49:34 -07:00
Igor Minar
3217a249e1
style(input): fix style violations in the input.js file
2011-10-19 16:49:34 -07:00
Konstantin Stepanov
78f394fd17
feat(input): add ng:minlength and ng:maxlength validation
...
notes(igor): I also e2e tests and refactorred the e2e test example to be
more clear about what is a variable and what is an html/framework api.
2011-10-19 16:49:20 -07:00
Konstantin Stepanov
e82e64d57b
fix(input): recognize 'password' as an html input type
2011-10-19 10:36:36 -07:00
Igor Minar
833eb3c844
fix(ng:repeat): repeater should ignore $ and $$ properties
2011-10-18 17:27:43 -07:00
TEHEK Firefox
ee6af9a978
fix(ng:options): select correct element when '?'-option was previously selected
...
Closes #599
2011-10-18 14:02:54 -07:00
Igor Minar
d83a92c121
fix(checkbox): prefix true-value & false-value with ng:
2011-10-13 17:35:00 -07:00
Igor Minar
ad5e42cf82
docs($location): Html5 -> HTML5
2011-10-13 14:42:49 -07:00
Igor Minar
7a19eb84aa
docs($location): fix $config -> $locationConfig in docs
2011-10-13 14:07:48 -07:00
Vojta Jina
afc81b554e
fix($location): do not rewrite link when meta key pressed
2011-10-13 11:10:19 -07:00
Vojta Jina
26e8ab3693
feat(scenario): allow key pressing when triggering browser event
...
Add parameter to our browserTriger function to allow specifying which keys are pressed.
Note, this does not work on IE<9 !
2011-10-13 11:10:19 -07:00
Igor Minar
28ccc76aa1
docs(dev_guide.bootstrap.auto_bootstrap): fixing a typo
2011-10-12 23:04:48 -07:00
Igor Minar
b3c4cb7cff
docs(*): remove @workInProgress from everywhere
...
it's not useful any more and it only makes the docs look ugly
2011-10-12 23:04:48 -07:00
Igor Minar
8611ebe6a0
fix(compiler): linking function should call $digest
...
The linked scope should be $digest-ed but only if a $digest isn't
already running on it.
2011-10-12 23:04:48 -07:00
Igor Minar
8f46a3c9ac
fix(jqLite): attr for boolean attribute should lowercase value
2011-10-12 23:04:47 -07:00
Igor Minar
66fdb36ecb
refactor(ng:bind-attr): simplify impl by leveraging jquery
2011-10-12 23:04:47 -07:00
Igor Minar
2bc7afd3ba
fix(ng:class): ignore undefined or NaN classnames
2011-10-12 23:04:47 -07:00
Igor Minar
a4b45397e0
docs(forms): add ng:change docs and other fixes
2011-10-12 11:49:42 -07:00
Misko Hevery
fd822bdaf9
chore(formating): clean code to be function() {
2011-10-11 11:01:46 -07:00
Misko Hevery
4f78fd692c
feat(forms): new and improved forms
2011-10-11 11:01:45 -07:00
Misko Hevery
e86c435349
refactor(bindings): remove the decoration of the DOM with errors.
...
Only $exceptionHandler gets notified now.
2011-10-11 10:53:07 -07:00
Misko Hevery
1942861472
refactor(hover): delete hover service
2011-10-11 10:53:06 -07:00
Misko Hevery
b96e978178
fix(jqlite): removeClass would clobber class names
2011-10-11 10:53:06 -07:00
Misko Hevery
bda2bba2be
feat(jqlite): added .inheritedData method and $destroy event.
...
- refactored .scope() to use .inheritedData() instead.
- .bind('$destroy', callback) will call when the DOM element is removed
2011-10-11 10:53:05 -07:00
Misko Hevery
ca08c004c8
feat(jqlite): support required as a no-value attribute
2011-10-11 10:53:05 -07:00
Misko Hevery
25a62b58db
refactor(injection) infer injection args in ng:controller only
...
Because only controllers don't have currying, we can infer its arguments, all other APIs needing currying, automatic inference complicates the matters unecessary.
2011-10-11 10:53:04 -07:00
Misko Hevery
75f11f1fc4
feat(ng:repeat) collection items and DOM elements affinity / stability
2011-10-11 10:53:04 -07:00
Misko Hevery
e134a8335f
fix(filter): make json filter ignore private properties
2011-10-11 10:53:03 -07:00
Dhruv Manek
e1ecc34edd
fix(parser): Fix short circuit of logical AND and OR operators
...
Closes #433
2011-10-07 16:01:09 -07:00
TEHEK Firefox
c115fa9924
fix($limitTo): properly handle excessive limits
...
`angular.Array.limitTo`'s result should not exceed original input array size
Closes #571
2011-10-05 11:01:32 -07:00
Igor Minar
b7a7fc7065
doc($log): fix the $log service example
...
is no longer auto-published on the root scope, so we need to publish
it via a controller
2011-09-29 03:21:24 +02:00