Igor Minar
9c9a89f7ff
docs for angular.scope. and angular.scope.
2010-11-24 18:07:11 -08:00
Igor Minar
1719b0aca5
fix all closure compilation warnings due to invalid function types
2010-11-18 17:03:43 -08:00
Igor Minar
fc7f11d03b
add @workInProgress tag and mark all @ngdocs as work in progress
2010-11-18 16:28:42 -08:00
Igor Minar
72a5f007d8
most of the documentation for angular.scope and friends
2010-11-18 02:35:30 -08:00
Igor Minar
fc78738cc6
scope docs + lowercase doc fix
2010-11-18 02:34:52 -08:00
Misko Hevery
b2d63ac48b
Changed error handling so that better stack traces are displayed in the ng-errors
2010-11-16 14:19:55 -08:00
Igor Minar
0a8b3161b1
$watch should optionally skip listener exec
...
- if initRun param is set to false, listener doesn't execute
- the oldValue should equal newValue during the initial execution
- added docs
- added specs
2010-11-11 16:39:01 -08:00
Misko Hevery
0499c47270
added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible)
2010-11-10 21:01:17 -08:00
Misko Hevery
ba5f8ee27f
fix typo, and change a list to string for more efficient compression.
2010-10-31 15:04:30 -07:00
Misko Hevery
9e9bdbdc40
JSON parser is now strict (ie, expressions are not allowed for security)
...
Close #57
2010-10-18 08:50:36 -07:00
Misko Hevery
de66a319b4
removed unneeded function rethrow from scope which was interfering with the test rethrow function
2010-10-15 10:55:58 -07:00
Misko Hevery
7903f4d940
use new Function instead of eval()
...
Close #52
2010-10-14 21:49:59 -07:00
Igor Minar
692333f2f5
temporary backwards compatibility patch for
2010-10-14 12:36:29 -07:00
Misko Hevery
d9abfe8a7e
Introduced injector and $new to scope, and injection into link methods and controllers
...
- added angular.injector(scope, services, instanceCache) which returns inject
- inject method can return, instance, or call function which have $inject
property
- initialize services with $creation=[eager|eager-publish] this means that
only some of the services are now globally accessible
- upgraded $become on scope to use injector hence respect the $inject property
for injection
- $become should not be run multiple times and will most likely be removed
in future version
- added $new on scope to create a child scope
- $inject is respected on constructor function
- simplified scopes so that they no longer have separate __proto__ for
parent, api, behavior and instance this should speed up execution since
scope will now create one __proto__ chain per scope (not three).
BACKWARD COMPATIBILITY WARNING:
- services now need to have $inject instead of inject property for proper
injection this breaks backward compatibility
- not all services are now published into root scope
(only: $location, $cookie, $window)
- if you have widget/directive which uses services on scope
(such as this.$xhr), you will now have to inject that service in
(as it is not published on the root scope anymore)
2010-10-12 16:33:06 -07:00
Igor Minar
7e47a2d016
temparary backaward compatibility patch for Controller.init
...
- feedback relies on *Controller.init to be called when a Controller is
being created. this with previous angular refactoring this is not happening
in angular any more. To make it easier for feedback to transition, this
change makes $become call controller's init method if present.
- call to Controller.init from $route.updateRoute was removed. this was
left there by accident during the previous refactoring.
2010-10-13 04:37:45 +08:00
Misko Hevery
006fd2ca25
HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are data bound (ie OPTION has repeater or OPTION.value is bound), then SELECT does not update to match the correct OPTION after the change in model (ie after the OPTION repeater unrolls or OPTION.value is changed.)
2010-09-21 19:20:34 +02:00
Misko Hevery
894ffadc8c
Fixed all trivial jslint violations
2010-09-14 23:22:15 +02:00
Misko Hevery
5ddd8d9586
stringify names for better compression, remove dead functions, removed underscore.js compatibility
2010-08-18 17:26:33 -07:00
Misko Hevery
5c14a35e62
initial perf testing
2010-08-13 09:50:03 -07:00
Misko Hevery
044ecb91c1
clean up for better obfuscation
2010-08-11 12:04:02 -07:00
Misko Hevery
9b392eca35
fix bug where $eval on undefined throws error
2010-08-10 11:23:23 -07:00
Misko Hevery
a161a99ff8
minor speed improvements
2010-07-26 15:54:50 -07:00
Misko Hevery
b288cb08b4
minor performance improvements
2010-07-26 15:32:08 -07:00
Misko Hevery
719f6e15a0
clean up error handling a bit.
2010-07-20 17:13:31 -07:00
Misko Hevery
09e2295975
updated list of JavaScript keywords
2010-07-15 09:41:25 -07:00
Misko Hevery
ee82dae318
added class as a constant keyword to generated code
2010-07-08 10:51:08 -07:00
Misko Hevery
b5195b8f67
changed the eval for ie to be able to return a function
2010-07-02 17:26:26 -07:00
Misko Hevery
105e9443c4
fixed special keywords in chrome such as x.throw must be x["throw"].
2010-07-02 14:43:17 -07:00
Shyam Seshadri
39312d1fe3
Revert "Revert "removed few key foreach and replaced thime with for loop for performance.""
...
This reverts commit a29c5e4c7f .
2010-06-02 15:05:34 -07:00
Shyam Seshadri
a29c5e4c7f
Revert "removed few key foreach and replaced thime with for loop for performance."
...
This reverts commit 6143b04384 .
2010-06-02 15:04:26 -07:00
Misko Hevery
6143b04384
removed few key foreach and replaced thime with for loop for performance.
2010-05-31 00:58:29 -07:00
Misko Hevery
2e33e89a77
added compiled getterFN for better performance
2010-05-30 19:42:21 -07:00
Misko Hevery
ad18fe1442
compiler exposos both self and this function calling convention
2010-05-30 16:45:35 -07:00
Misko Hevery
c7d64f6d12
improve error handling with elements
2010-05-30 16:34:59 -07:00
Misko Hevery
0d87208553
remove the relience of parser an special self object, now passing generic self
2010-05-30 16:11:00 -07:00
Misko Hevery
0e88e35e5c
remove the uneeded call to createScope when evaluating expressions
2010-05-30 15:45:33 -07:00
Misko Hevery
0f73084e9d
added error handler to xhr requests
2010-05-19 11:51:17 -07:00
Misko Hevery
22d1464d7a
fixed issue with radio view clobering model if radio was checked.
2010-05-13 13:57:39 -07:00
Misko Hevery
0305b6746e
change everything over to jasmine
2010-05-07 13:43:54 -07:00
Misko Hevery
038a743e6f
xhr bulk fixes
2010-05-07 12:09:14 -07:00
Misko Hevery
c7913a4b7a
added $xhr service with bulk and cache, hooked up $resource
2010-04-29 17:28:33 -07:00
Misko Hevery
deb86fe357
lots of small fixes
2010-04-16 14:01:29 -07:00
Misko Hevery
70e401ef10
added $route service
2010-04-15 14:17:33 -07:00
Misko Hevery
843bd355d2
various bug fixes
2010-04-09 16:20:15 -07:00
Misko Hevery
0df93fd49c
clean up, fixes for app
2010-04-07 10:17:15 -07:00
Misko Hevery
e646068586
added ng-controller directive
2010-04-05 21:26:52 -07:00
Misko Hevery
7a4b480206
added ng:switch widget
2010-04-05 11:46:53 -07:00
Misko Hevery
a80a61839a
injection is now working
2010-04-03 17:04:36 -07:00
Misko Hevery
35ca4fcb9c
radio now works with repeaters
2010-04-02 11:49:48 -07:00
Misko Hevery
5bd23fde7a
merge
2010-04-02 11:16:49 -07:00