aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
AgeCommit message (Collapse)Author
2011-02-16Small spelling and grammar fixes in documentation.Anthony Lieuallen
2011-02-14docs - adding cross links from directives to guide.expressionIgor Minar
2011-02-07add description for ng:controller exampleIgor Minar
2011-02-01changed the documentation @example to use <doc:example>Misko Hevery
2011-01-20null and other falsy values should not be rendered in the viewIgor Minar
Closes #242
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.
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
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-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView
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-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar
2010-11-18escape code in ng:bind-attr jsdocIgor Minar
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-15added remaining directives and search box.Misko Hevery
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-11-10Added DirectivesMisko Hevery
2010-10-27Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ↵Misko Hevery
ng-binding
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-18JSON parser is now strict (ie, expressions are not allowed for security)Misko Hevery
Close #57
2010-10-13fixed issue where ng:bind would not reset value if expression returned undefinedMisko Hevery
2010-10-08change ng:controller to create new scope hence allow nestingMisko Hevery
2010-10-05Fix bug in IE where clone removes whitespace nodes.Elliott Sprehn
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-09-21HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are ↵Misko Hevery
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-14Fixed all trivial jslint violationsMisko Hevery
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-07-27fix preventDefault for eventsMisko Hevery
2010-07-23fix bug which only showed up in ie7Misko Hevery
2010-07-23minor per improvementMisko Hevery
2010-07-22fix howers which were accidently brokenMisko 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-09ng:repeat ignores prototype keysMisko Hevery
2010-07-02change all attributes from ng- to ng: prefixMisko Hevery
2010-06-02Revert "Revert "removed few key foreach and replaced thime with for loop for ↵Shyam Seshadri
performance."" This reverts commit a29c5e4c7fd5e708c28e70e974bf873621d5277c.
2010-06-02Revert "removed few key foreach and replaced thime with for loop for ↵Shyam Seshadri
performance." This reverts commit 6143b04384680d17f38c2d5894a9b9961ea33288.
2010-05-31removed few key foreach and replaced thime with for loop for performance.Misko Hevery
2010-05-30compiler exposos both self and this function calling conventionMisko Hevery
2010-05-30remove the relience of parser an special self object, now passing generic selfMisko Hevery
2010-05-07change everything over to jasmineMisko Hevery
2010-04-23fix last ie failureMisko Hevery
2010-04-22clean up failing test with jqueryMisko Hevery
2010-04-22tests work under jquery and withoutMisko Hevery
2010-04-21more if tests passMisko Hevery