Igor Minar
a130bb899d
add onload attribute to ng:include
2010-11-16 11:35:43 -08:00
Misko Hevery
7e6f999221
added remaining directives and search box.
2010-11-15 10:04:17 -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
Igor Minar
324694a58b
Better example widget
...
- syntax highlighting
- tabless design
- rename widget to doc:example
- rename widget files (wiki_widget.* -> doc_widget.*)
- example section is now optional
2010-11-09 22:27:31 -08:00
Misko Hevery
91b6c5f7ff
Added documentation for validators.
...
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
2010-11-07 13:06:55 -08:00
Misko Hevery
dc66687149
added tests for documentation
2010-11-05 15:05:24 -07:00
Misko Hevery
47066e70e1
added documentation for ng:include and ng:widget and test for doc collector.
2010-11-04 14:24:31 -07:00
Misko Hevery
659af29adb
jsdoc parser + generator + viewer + scenario runner
...
- parse jsdocs from source code
- generate prerendered (markdown + mustache) partials
- generate json
- generate scenario runner for examples in docs
- basic angular doc viewer
2010-11-03 09:47:22 -07:00
Misko Hevery
9c0225512c
fixes IE related failures, and form submit event handling in ie
2010-10-26 16:33:59 -07:00
Misko Hevery
d74ef497de
Fix for getting into recursive $eval on scope. Close #59
...
It sort of worked since the browser would throw stack too deep
exception and the angular would then print the error to console.
So as long as you did not have console open you would not notice
this as an error.
2010-10-23 13:42:11 -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
Igor Minar
54090d7766
ng:include should remove the reference to childScope when src is blank
2010-10-16 22:10:01 -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
451a711343
fix global namespace polution with invalidWidgets
2010-10-13 04:37:46 +08:00
Igor Minar
70ff7a2639
fix memory leak caused by leftbehind $invalidWidgets references
...
- ng:switch should not clean up $invalidWidgets
- $invalidWidgets should be clean up after each eval
- add missing docs
2010-10-13 04:37:46 +08:00
Elliott Sprehn
8e40e7070d
Fix bug in IE where clone removes whitespace nodes.
2010-10-05 07:12:13 +08:00
Igor Minar
8248e77a7b
'A' tag widget and ng:click propagation change
...
* added a widget for A (anchor) tag, that modifies the default behavior
and prevent default action (location change and page reload) for tags
with empty href attribute
* stopped event propagation for all ng:click handlers
2010-10-01 07:44:46 +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
2a3a449c6d
merge
2010-09-14 23:42:43 +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
Igor Minar
0df7329a6a
fix for ng:include does not remove partial if src goes to undefined
2010-08-16 16:47:39 -07:00
Misko Hevery
2a30a02f01
fix preventDefault for events
2010-07-27 15:54:50 -07:00
Misko Hevery
bebfbeac0a
fixed xhtml compatibility, fix console in chrome
2010-07-20 16:55:32 -07:00
Misko Hevery
9abd10e7b8
proper handlig of $element in filters
2010-07-15 13:13:21 -07:00
Misko Hevery
10cd9751ea
ng-change ng:change
2010-07-13 15:21:42 -07:00
Misko Hevery
87cfc27be3
changed remaining ng- to ng:
2010-07-13 11:20:11 -07:00
Misko Hevery
1f05621509
change all attributes from ng- to ng: prefix
2010-07-02 15:39:57 -07:00
Shyam Seshadri
b129a1094e
add back nicer formatting
2010-06-16 10:36:48 -07:00
Shyam Seshadri
769b26b79e
Fix bug with validator not triggering when attributes are bound and fix some typos. Add test for bug
2010-06-16 10:32:56 -07:00
Shyam Seshadri
36b58b235e
fix some lint issues
2010-06-03 11:03:11 -07:00
Shyam Seshadri
3245209bdb
Add ability to add conditions to ng-required
2010-06-02 17:13:10 -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
Andres Ornelas
cb5d211927
extracted switchRouteMatcher and added necessary libraries to angular-scenario
2010-05-27 11:26:23 -07:00
Misko Hevery
1bdcf72e45
put formatters back.
2010-05-13 16:40:41 -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
d5ba889f63
fixes issues where the field clobbers itself
2010-05-12 15:25:16 -07:00
Misko Hevery
271b535c82
fix handling of null on ie
2010-05-10 20:41:12 -07:00
Misko Hevery
81e99799a8
fix handling of val on ie with jquery
2010-05-10 20:30:05 -07:00
Misko Hevery
5dda723185
improved handling of text fields when formater fails to prevent clobering of field
2010-05-10 20:24:20 -07:00
Misko Hevery
f5027cc375
Merge branch 'master' of github.com:angular/angular.js
2010-05-10 10:36:06 -07:00
Misko Hevery
4542716370
lint
2010-05-10 10:36:02 -07:00
Misko Hevery
ac1d02d065
make xhr post optional
2010-04-30 12:22:07 -07:00
Misko Hevery
0396054b4a
fixed the way IE breaks parests on innerHTML
2010-04-22 22:44:48 -07:00
Misko Hevery
fe434307d1
tests work under jquery and without
2010-04-22 17:11:56 -07:00
Misko Hevery
8b29156a2d
ie6 now passes
2010-04-21 14:29:05 -07:00
Misko Hevery
e78405f6ed
more if tests pass
2010-04-21 12:50:05 -07:00
Misko Hevery
9f9bdcf3d1
lint
2010-04-19 14:41:36 -07:00
Misko Hevery
6470b48ce0
validation issues fixed
2010-04-16 17:03:06 -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