Misko Hevery
61f2767ce6
feat(ngRepeat): add support for custom tracking of items
...
BREAKING CHANGE:
It is considered an error to have two items produce
the same track by key. (This was tolerated before.)
2013-03-29 23:01:52 -07:00
Igor Minar
d644dcfa52
fix(ngRepeat): attempt to simplify and improve existing fix for #933
...
I'm keeping this in for future reference. The issue with this solution
is that if we shift() the first item in the array, the whole repeater
DOM will be rebuilt from scratch, we need to do better than that.
2012-11-26 20:31:54 +01:00
Zhenbo Zhang
f2b7fffdc0
fix(ngRepeat): now works with primitive types
...
closes #933
2012-09-06 16:06:21 -07:00
Igor Minar
5e9041818b
revert: fix(ng-repeat) to work with primitive types
...
this was accidentaly merged in. the commit is not ready yet
and we don't have CLA signature.
This reverts commit 98d489712e .
2012-08-31 13:59:03 -07:00
Zhenbo Zhang
0a71753ce3
fix(ng-repeat) to work with primitive types
2012-08-30 15:20:40 -07:00
Igor Minar
cd9a7b9608
fix(ng:repeat): support repeating over array with null
...
typeof null == 'object', but it doesn't behave like an object
because its properties can't be dereferenced, so we need
to special-case it.
Closes #702
2012-01-06 12:19:39 -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
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
Igor Minar
25d1822bd8
style(HashQueueMap): fixing a typo in the comment
2011-10-26 12:54:00 -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
75f11f1fc4
feat(ng:repeat) collection items and DOM elements affinity / stability
2011-10-11 10:53:04 -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
Toni Thompson
446f6b233f
doc(API): various API documentation improvements
2011-08-24 11:06:55 +02:00
Igor Minar
2bbef363e4
style(*): remove extra semicolons
2011-08-15 00:21:02 -07:00
Igor Minar
06835a462a
style($function): replace $function with 'function'
2011-08-06 01:54:06 -07:00
Misko Hevery
8f0dcbab80
feat(scope): new and improved scope implementation
...
- Speed improvements (about 4x on flush phase)
- Memory improvements (uses no function closures)
- Break $eval into $apply, $dispatch, $flush
- Introduced $watch and $observe
Breaks angular.equals() use === instead of ==
Breaks angular.scope() does not take parent as first argument
Breaks scope.$watch() takes scope as first argument
Breaks scope.$set(), scope.$get are removed
Breaks scope.$config is removed
Breaks $route.onChange callback has not "this" bounded
2011-08-02 01:00:03 +02:00
Igor Minar
fe5240732d
feat(strict mode): adding strict mode flag to all js files
...
the flag must be in all src and test files so that we get the benefit of
running in the strict mode even in jstd
the following script was used to modify all files:
for file in `find src test -name "*.js"`; do
echo -e "'use strict';\n" > temp.txt
cat $file >> temp.txt
mv temp.txt $file
done
2011-07-18 12:12:55 -07:00
Igor Minar
c02ef92630
fix:docs: fix $orderBy example and e2e test
2011-06-30 01:07:08 -07:00
Misko Hevery
b74163dc1d
fix:$orderBy - return unsorted array if no predicate
...
Closes #399
2011-06-23 08:12:01 -07:00
Misko Hevery
8cad231bd2
Refactor injector to have invoke method for speed reasons
2011-06-08 15:21:31 -07:00
Misko Hevery
bb67ee8d28
Added HashMap
2011-06-08 15:01:32 -07:00
Igor Minar
3069566073
api doc fixes from ken
2011-06-06 23:10:28 -07:00
Di Peng
9250fce19c
fixed opera date.toISOString issue
...
Closes #365
2011-06-03 09:44:21 -07:00
Igor Minar
1e59822df7
remove _null and _undefined
...
they have no significant effect on minified and gziped size. in fact
they make things worse.
file | before | after removal
----------------------------------------
concat | 325415 | 325297
min | 62070 | 62161
min + gzip | 25187 | 25176
The bottom line is that we are getting 0.05% decrease in size after
gzip without all of the hassle of using underscores everywhere.
2011-03-26 23:19:04 -07:00
Misko Hevery
4c762bfe5c
fix orberBy documentation error
2011-03-05 22:54:41 -08:00
Igor Minar
5bf7ff5a3e
fixing broken e2e tests
2011-03-03 13:50:12 -08:00
Misko Hevery
cdc093a463
reformated multiline trinary expressions to have a leading ?/:.
2011-02-16 08:59:57 -05:00
Misko Hevery
ba6b68b6ae
changed the documentation @example to use <doc:example>
2011-02-01 10:00:09 -08:00
Igor Minar
ad3b811b8b
fixes, examples and tests for angular.Object.* docs
2011-01-18 14:42:18 -08:00
Igor Minar
d3f7bd699e
various doc fixes for angular.Array.* apis + example and spec limitTo
2011-01-18 11:15:36 -08:00
Igor Minar
0a6cf70deb
Rename angular.foreach to angular.forEach to make the api consistent.
...
camelcase is used for other angular functions and forEach is also
used by EcmaScript standard.
- rename the internal as well as the external function name
- tweak the implementation of the function so that it doesn't
clober it self when we extend the angular object with an
object that has a forEach property equal to this forEach function
Closes #85
2011-01-10 10:26:55 -08:00
Igor Minar
8aed2047f0
fixing closure compiler warnings
2010-12-06 20:48:47 -08:00
Igor Minar
f60b6b0938
fix the angular.Array.orderBy example + add docs
2010-12-06 20:32:37 -08:00
Igor Minar
c8f34e7f6b
fixing lint warnings in older code
2010-12-06 16:45:59 -08:00
Igor Minar
7c82c4f837
docs for angular.Object and angular.Object.equals
2010-11-24 16:55:44 -08:00
Igor Minar
97b1371199
adding Note section to angular.Array.* where it was missing
2010-11-24 16:32:03 -08:00
Igor Minar
95d1768c77
docs for angular.Array.sum
2010-11-24 16:28:17 -08:00
Igor Minar
c3d99d68da
docs for angular.Array.filter
2010-11-23 17:14:04 -08:00
Igor Minar
303a683081
docs for angular.Array.remove
2010-11-23 16:28:24 -08:00
Igor Minar
a0e8c45880
docs for angular.Array.remove
2010-11-23 16:10:14 -08:00
Igor Minar
870547d185
docs for angular.Array.orderBy
2010-11-23 15:44:14 -08:00
Igor Minar
0d1f8a0532
docs for angular.Array.count
2010-11-23 14:10:10 -08:00
Igor Minar
b94600d71e
adding docs for angular.Array.add
2010-11-23 11:05:28 -08:00
Igor Minar
3e5a4ef86c
placeholder docs for all angular.Array functions
2010-11-22 10:57:44 -08:00
Igor Minar
efec0c358d
Add angular.Array.limitTo and docs for angular.Array
2010-11-22 10:57:32 -08:00
Igor Minar
fc9ce9ec07
make angular.String.toDate consider all time fractions as optional
2010-11-08 22:49:30 -08:00
Igor Minar
da17c61444
angular.Date.toString should use toISOString if available
2010-11-08 22:49:30 -08:00