aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
AgeCommit message (Collapse)Author
2011-01-14fixed select with ng:formatMisko Hevery
select (one/multiple) could not chose from a list of objects, since DOM requires string ids. Solved by adding index formatter, which exposed incorrect handling of formatters in select widgets.
2010-12-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-11-18move attribute widgets to widgets.js fileIgor Minar
- move @ng:repeat to widgets.js and its specs to widgetsSpecs.js - move @ng:non-bindable to widgets.js and its specs to widgetsSpecs.js - make widget.template suitable for attribute widgets - fix up the js docs for attribute widgets
2010-11-16Changed error handling so that better stack traces are displayed in the ↵Misko Hevery
ng-errors
2010-11-10Make ng:repeat expose $position.Igor Minar
- $position is a textual representation of the position of repeated item ('first', 'middle', 'last') - added specs for $index
2010-11-10added ng:switch-when-default; changed $watch to always fire on init. (may be ↵Misko Hevery
backward incompatible)
2010-10-27Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ↵Misko Hevery
ng-binding
2010-10-26fixes IE related failures, and form submit event handling in ieMisko Hevery
2010-10-26create HTML sanitizer to allow inclusion of untrusted HTML in safe manner.Misko Hevery
Sanitization works in two phases: 1) We parse the HTML into sax-like events (start, end, chars). HTML parsing is very complex, and so it may very well be that what most browser consider valid HTML may not pares properly here, but we do best effort. We treat this parser as untrusted. 2) We have safe sanitizeWriter which treats its input (start, end, chars) as untrusted content and escapes everything. It only allows elements in the whitelist and only allows attributes which are whitelisted. Any attribute value must not start with 'javascript:'. This check is performed after escaping for entity (&xAB; etc..) and ignoring any whitespace. - Correct linky filter to use safeHtmlWriter - Correct html filter to use safeHtmlWriter Close #33; Close #34
2010-10-23adding ng:submit directive for use with formsIgor Minar
- allows for binding angular expressions to onsubmit events - prevent default submit action (page reload)
2010-10-23simplifying ng:click specIgor Minar
2010-10-19fixed testsMisko Hevery
2010-10-13fixed issue where ng:bind would not reset value if expression returned undefinedMisko Hevery
2010-10-12Introduced injector and $new to scope, and injection into link methods and ↵Misko Hevery
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-08change ng:controller to create new scope hence allow nestingMisko Hevery
2010-10-04fixed lint warningsIgor Minar
2010-10-01'A' tag widget and ng:click propagation changeIgor Minar
* 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-08-14merge kai/masterMisko Hevery
2010-07-27fix preventDefault for eventsMisko Hevery
2010-07-22fix howers which were accidently brokenMisko Hevery
2010-07-15fixed buildMisko Hevery
2010-07-15proper handlig of $element in filtersMisko Hevery
2010-07-15proper handlig of $element in filtersMisko Hevery
2010-07-14appease IE on CSS stylesMisko Hevery
2010-07-14ng:style remembers previous style and properly resets to itMisko Hevery
2010-07-15fix undefine styleKai Compagner
2010-07-14fix undefine styleKai Compagner
2010-07-09ng:repeat ignores prototype keysMisko Hevery
2010-07-02change all attributes from ng- to ng: prefixMisko Hevery
2010-05-07change everything over to jasmineMisko Hevery
2010-04-22clean up failing test with jqueryMisko Hevery
2010-04-21ie6 now passesMisko Hevery
2010-04-21more if tests passMisko Hevery
2010-04-20fixes to enable ieMisko Hevery
2010-04-16lots of small fixesMisko Hevery
2010-04-12added ng-eval-order attributeMisko Hevery
2010-04-12removed Meta and allowed binding of HTMLMisko Hevery
2010-04-08tests pass jstd has issuesMisko Hevery
2010-04-08tests failing jstd to show coryMisko Hevery
2010-04-07seperatio validation and exception handlingMisko Hevery
2010-04-07Merge branch 'directives' of github.com:angular/angular.js into directivesMisko Hevery
2010-04-07clean up, fixes for appMisko Hevery
2010-04-06few fixes to make tests pass with jqueryMisko Hevery
2010-04-05added ng-controller directiveMisko Hevery
2010-04-05added ng:includeMisko Hevery
2010-03-31all tests green, some dissabledMisko Hevery
2010-03-30more tests fixedMisko Hevery
2010-03-29dissabled a lot of tests, and made the core test set pass.Misko Hevery
2010-03-25major refactoring of scopeMisko Hevery
2010-03-25checkbox and radio now workingMisko Hevery