pax_global_header00006660000000000000000000000064124431726620014521gustar00rootroot0000000000000052 comment=37310e024d6dd6894ed3ac6a3e2a84da6d6bbd1a angular.js-1.2.28/000077500000000000000000000000001244317266200136575ustar00rootroot00000000000000angular.js-1.2.28/.editorconfig000066400000000000000000000005401244317266200163330ustar00rootroot00000000000000# http://editorconfig.org root = true [*] charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [src/ngLocale/**] insert_final_newline = false [dropdown-toggle.js] trim_trailing_whitespace = false insert_final_newline = false [htmlparser.js] insert_final_newline = false angular.js-1.2.28/.gitignore000066400000000000000000000004261244317266200156510ustar00rootroot00000000000000/build/ .DS_Store gen_docs.disable test.disable regression/temp*.html performance/temp*.html .idea/workspace.xml *~ *.swp angular.js.tmproj /node_modules/ bower_components/ angular.xcodeproj .idea *.iml .agignore libpeerconnection.log npm-debug.log /tmp/ /scripts/bower/bower-* angular.js-1.2.28/.jscs.json000066400000000000000000000002321244317266200155670ustar00rootroot00000000000000{ "disallowKeywords": ["with"], "disallowTrailingWhitespace": true, "requireRightStickedOperators": ["!"], "requireLeftStickedOperators": [","] } angular.js-1.2.28/.jscs.json.todo000066400000000000000000000016171244317266200165430ustar00rootroot00000000000000// This is an incomplete TODO list of checks we want to start enforcing // // The goal is to enable these checks one by one by moving them to .jscs.json along with commits // that correct the existing code base issues and make the new check pass. { "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"], "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], "disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], "disallowImplicitTypeConversion": ["string"], "disallowMultipleLineBreaks": true, "disallowKeywordsOnNewLine": ["else"], "requireLineFeedAtFileEnd": true, "validateJSDoc": { "checkParamNames": true, "requireParamTypes": true } } angular.js-1.2.28/.jshintignore000066400000000000000000000000421244317266200163570ustar00rootroot00000000000000node_modules/** lib/htmlparser/** angular.js-1.2.28/.jshintrc000066400000000000000000000001031244317266200154760ustar00rootroot00000000000000{ "extends": ".jshintrc-base", "node": true, "globals": {} } angular.js-1.2.28/.jshintrc-base000066400000000000000000000004641244317266200164200ustar00rootroot00000000000000{ "bitwise": true, "immed": true, "newcap": true, "noarg": true, "noempty": true, "nonew": true, "trailing": true, "maxlen": 200, "boss": true, "eqnull": true, "expr": true, "globalstrict": true, "laxbreak": true, "loopfunc": true, "sub": true, "undef": true, "indent": 2 } angular.js-1.2.28/.travis.yml000066400000000000000000000022331244317266200157700ustar00rootroot00000000000000language: node_js node_js: - '0.10' branches: except: - /^g3_.*$/ env: matrix: - JOB=unit - JOB=e2e TEST_TARGET=jqlite - JOB=e2e TEST_TARGET=jquery global: - SAUCE_USERNAME=angular-ci - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 - LOGS_DIR=/tmp/angular-build/logs - BROWSER_PROVIDER_READY_FILE=/tmp/sauce-connect-ready install: # - npm config set registry http://23.251.144.68 # Disable the spinner, it looks bad on Travis - npm config set spin false # Log HTTP requests - npm config set loglevel http - time ./scripts/travis/npm-bundle-deps.sh - time npm install before_script: - mkdir -p $LOGS_DIR - ./lib/sauce/sauce_connect_setup.sh - npm install -g grunt-cli - grunt package - ./scripts/travis/wait_for_browser_provider.sh script: - ./scripts/travis/build.sh after_script: - ./scripts/travis/print_logs.sh notifications: webhooks: urls: - https://webhooks.gitter.im/e/d2120f3f2bb39a4531b2 on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: false # default: false angular.js-1.2.28/CHANGELOG.md000066400000000000000000014572701244317266200155100ustar00rootroot00000000000000 # 1.2.27 prime-factorization (2014-11-20) ## Bug Fixes - **$animate:** clear the GCS cache even when no animation is detected ([f619d032](https://github.com/angular/angular.js/commit/f619d032c932752313c646b5295bad8a68ef3871), [#8813](https://github.com/angular/angular.js/issues/8813)) - **$browser:** - Cache `location.href` only during page reload phase ([434d7a09](https://github.com/angular/angular.js/commit/434d7a09039151c1e627ac156213905d06b7df10), [#9235](https://github.com/angular/angular.js/issues/9235), [#9470](https://github.com/angular/angular.js/issues/9470)) - don’t use history api when only the hash changes ([a6e6438d](https://github.com/angular/angular.js/commit/a6e6438dae1ed92b29608d0b8830b0a7fbb624ef), [#9423](https://github.com/angular/angular.js/issues/9423), [#9424](https://github.com/angular/angular.js/issues/9424)) - handle async href on url change in <=IE9 ([fe7d9ded](https://github.com/angular/angular.js/commit/fe7d9dedaa5ec3b3f56d9eb9c513cf99e40121ce), [#9235](https://github.com/angular/angular.js/issues/9235)) - **$http:** add missing shortcut methods and missing docs ([ec4fe1bc](https://github.com/angular/angular.js/commit/ec4fe1bcab6f981103a10f860a3a00122aa78607), [#9180](https://github.com/angular/angular.js/issues/9180), [#9321](https://github.com/angular/angular.js/issues/9321)) - **$location:** - revert erroneous logic and backport refactorings from master ([1ee9b4ef](https://github.com/angular/angular.js/commit/1ee9b4ef5e4a795061d3aa19adefdeb7e0209eeb), [#8492](https://github.com/angular/angular.js/issues/8492)) - allow 0 in path() and hash() ([f807d7ab](https://github.com/angular/angular.js/commit/f807d7ab4ebd18899154528ea9ed50d5bc25c57a)) - **$parse:** add quick check for Function constructor in fast path ([756640f5](https://github.com/angular/angular.js/commit/756640f5aa8f3fd0084bff50534e23976a6fff00)) - **$parse, events:** prevent accidental misuse of properties on $event ([4d0614fd](https://github.com/angular/angular.js/commit/4d0614fd0da12c5783dfb4956c330edac87e62fe), [#9969](https://github.com/angular/angular.js/issues/9969)) - **ngMock:** $httpBackend should match data containing Date objects correctly ([1426b029](https://github.com/angular/angular.js/commit/1426b02980badfd322eb960d71bfb1a14d657847), [#5127](https://github.com/angular/angular.js/issues/5127)) - **orderBy:** sort by identity if no predicate is given ([45b896a1](https://github.com/angular/angular.js/commit/45b896a16abbcbfcdfb9a95c2d10c76a805b57cc), [#5847](https://github.com/angular/angular.js/issues/5847), [#4579](https://github.com/angular/angular.js/issues/4579), [#9403](https://github.com/angular/angular.js/issues/9403)) - **select:** ensure the label attribute is updated in Internet Explorer ([16833d0f](https://github.com/angular/angular.js/commit/16833d0fb6585117e9978d1accc3ade83e22e797), [#9621](https://github.com/angular/angular.js/issues/9621), [#10042](https://github.com/angular/angular.js/issues/10042)) ## Performance Improvements - **orderBy:** copy array with slice instead of for loop ([409bcb38](https://github.com/angular/angular.js/commit/409bcb3810a1622178268f7ff7f4130887a1a3dc), [#9942](https://github.com/angular/angular.js/issues/9942)) # 1.3.3 undersea-arithmetic (2014-11-17) ## Bug Fixes - **$http:** don't parse single space responses as JSON ([6f19a6fd](https://github.com/angular/angular.js/commit/6f19a6fd33ab72d3908e3418fba47ee8e1598fa6), [#9907](https://github.com/angular/angular.js/issues/9907)) - **minErr:** stringify non-JSON compatible objects in error messages ([cf43ccdf](https://github.com/angular/angular.js/commit/cf43ccdf9b8665a2fd5d6aa52f80cb2d7c9bb7e2), [#10085](https://github.com/angular/angular.js/issues/10085)) - **$rootScope:** handle cyclic references in scopes when creating error messages ([e80053d9](https://github.com/angular/angular.js/commit/e80053d91fd7c722e092a23d326384de2e552eb6), [#10085](https://github.com/angular/angular.js/issues/10085)) - **ngRepeat:** support cyclic object references in error messages ([fa12c3c8](https://github.com/angular/angular.js/commit/fa12c3c86af7965d1b9d9a5dd3434755e9e04635), [#9838](https://github.com/angular/angular.js/issues/9838), [#10065](https://github.com/angular/angular.js/issues/10065), [#10085](https://github.com/angular/angular.js/issues/10085)) - **ngMock:** call $interval callbacks even when invokeApply is false ([d81ff888](https://github.com/angular/angular.js/commit/d81ff8885b77f70c6417d7be3124d86d07447375), [#10032](https://github.com/angular/angular.js/issues/10032)) - **ngPattern:** match behaviour of native HTML pattern attribute ([85eb9660](https://github.com/angular/angular.js/commit/85eb9660ef67c24d5104a6a1921bedad0bd1b57e), [#9881](https://github.com/angular/angular.js/issues/9881), [#9888](https://github.com/angular/angular.js/issues/9888)) - **select:** ensure the label attribute is updated in Internet Explorer ([6604c236](https://github.com/angular/angular.js/commit/6604c2361427fba8c43a39dc2e92197390dfbdbe), [#9621](https://github.com/angular/angular.js/issues/9621), [#10042](https://github.com/angular/angular.js/issues/10042)) ## Features - **$location:** allow to location to be changed during $locationChangeStart ([a9352c19](https://github.com/angular/angular.js/commit/a9352c19ce33f0393d6581547c7ea8dfc2a8b78f), [#9607](https://github.com/angular/angular.js/issues/9607), [#9678](https://github.com/angular/angular.js/issues/9678)) - **$routeProvider:** allow setting caseInsensitiveMatch on the provider ([0db573b7](https://github.com/angular/angular.js/commit/0db573b7493f76abd94ff65ce660017d617e865b), [#6477](https://github.com/angular/angular.js/issues/6477), [#9873](https://github.com/angular/angular.js/issues/9873)) ## Performance Improvements - **orderBy:** copy array with slice instead of for loop ([8eabc546](https://github.com/angular/angular.js/commit/8eabc5463c795d87f37e5a9eacbbb14435024061), [#9942](https://github.com/angular/angular.js/issues/9942)) # 1.3.2 cardiovasculatory-magnification (2014-11-07) ## Bug Fixes - **$compile:** do not rebind parent bound transclude functions ([841c0907](https://github.com/angular/angular.js/commit/841c0907556f525dbc4223609d808319fe0dd7e2), [#9413](https://github.com/angular/angular.js/issues/9413)) - **$parse:** - stateful interceptors override an `undefined` expression ([ed99821e](https://github.com/angular/angular.js/commit/ed99821e4dc621864f7e2d9a6b5305fca27fb7fa), [#9821](https://github.com/angular/angular.js/issues/9821), [#9825](https://github.com/angular/angular.js/issues/9825)) - add quick check for Function constructor in fast path ([e676d642](https://github.com/angular/angular.js/commit/e676d642f5feb8d3ba88944634afb479ba525c36)) - **$parse, events:** prevent accidental misuse of properties on $event ([e057a9aa](https://github.com/angular/angular.js/commit/e057a9aa398ead209bd6bbf76e22d2d5562904fb)) - **ngRoute:** allow proto inherited properties in route params object ([b4770582](https://github.com/angular/angular.js/commit/b4770582f84f26c8ff7f2320a36a6b0ceff6e6cc), [#8181](https://github.com/angular/angular.js/issues/8181), [#9731](https://github.com/angular/angular.js/issues/9731)) - **select:** use strict comparison for isSelected with selectAs ([9e305948](https://github.com/angular/angular.js/commit/9e305948e4965fb86b0c79985dc6e8c59a9c66af), [#9639](https://github.com/angular/angular.js/issues/9639), [#9949](https://github.com/angular/angular.js/issues/9949)) ## Features - **ngAria:** announce ngMessages with aria-live ([187e4318](https://github.com/angular/angular.js/commit/187e43185dfb1bce6a318d95958c73cfb789d33c), [#9834](https://github.com/angular/angular.js/issues/9834)) - **ngMock:** decorator that adds Scope#$countChildScopes and Scope#$countWatchers ([74981c9f](https://github.com/angular/angular.js/commit/74981c9f208b3617cbf00beafd61138d25c5d546), [#9926](https://github.com/angular/angular.js/issues/9926), [#9871](https://github.com/angular/angular.js/issues/9871)) ## Security Note This release also contains security fixes for expression sandbox bypasses. These issues affect only applications with known server-side XSS holes that are also using [CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP) to secure their client-side code. If your application falls into this rare category, we recommend updating your version of Angular. We'd like to thank security researches [Sebastian Lekies](https://twitter.com/sebastianlekies), [Jann Horn](http://thejh.net/), and [Gábor Molnár](https://twitter.com/molnar_g) for reporting these issues to us. We also added a documentation page focused on security, which contains some of the best practices, DOs and DON'Ts. Please check out [https://docs.angularjs.org/guide/security](https://docs.angularjs.org/guide/security). # 1.3.1 spectral-lobster (2014-10-31) ## Bug Fixes - **$compile:** returning null when an optional controller is not found ([2cd5b4ec](https://github.com/angular/angular.js/commit/2cd5b4ec4409a818ccd33a6fbdeb99a3443a1809), [#9404](https://github.com/angular/angular.js/issues/9404), [#9392](https://github.com/angular/angular.js/issues/9392)) - **$observe:** check if the attribute is undefined ([531a8de7](https://github.com/angular/angular.js/commit/531a8de72c439d8ddd064874bf364c00cedabb11), [#9707](https://github.com/angular/angular.js/issues/9707), [#9720](https://github.com/angular/angular.js/issues/9720)) - **$parse:** support dirty-checking objects with null prototype ([28661d1a](https://github.com/angular/angular.js/commit/28661d1a8cc3a8454bad7ae531e027b1256476c9), [#9568](https://github.com/angular/angular.js/issues/9568)) - **$sce:** use msie instead of $document[0].documentMode ([45252c3a](https://github.com/angular/angular.js/commit/45252c3a545336a0bac93be6ee28cde6afaa3cb4), [#9661](https://github.com/angular/angular.js/issues/9661)) - **$templateRequest:** ignore JSON Content-Type header and content ([1bd473eb](https://github.com/angular/angular.js/commit/1bd473eb4587900086e0b6b308dcf1dcfe9760d9), [#5756](https://github.com/angular/angular.js/issues/5756), [#9619](https://github.com/angular/angular.js/issues/9619)) - **i18n:** rename datetimeSymbols to be camelCase ([94f5a285](https://github.com/angular/angular.js/commit/94f5a285bfcf04d800afc462a7a37a3469d77f1a)) - **loader:** fix double spaces ([8b2f1a47](https://github.com/angular/angular.js/commit/8b2f1a47b584ceb98689f48538a2af73cd65dfd8), [#9630](https://github.com/angular/angular.js/issues/9630)) - **ngMock:** $httpBackend should match data containing Date objects correctly ([1025f6eb](https://github.com/angular/angular.js/commit/1025f6ebf4e5933a12920889be00cd8ac8a106fa), [#5127](https://github.com/angular/angular.js/issues/5127)) - **ngSanitize:** attribute name: xmlns:href -> xlink:href ([4cccf0f2](https://github.com/angular/angular.js/commit/4cccf0f2a89b002d63cb443e1e7b15f76dcef425), [#9769](https://github.com/angular/angular.js/issues/9769)) - **select:** assign result of track exp to element value ([4b4098bf](https://github.com/angular/angular.js/commit/4b4098bfcae64f69c70a22393de1f3d9a0d3dc46), [#9718](https://github.com/angular/angular.js/issues/9718), [#9592](https://github.com/angular/angular.js/issues/9592)) - **templateRequest:** allow empty html template ([52ceec22](https://github.com/angular/angular.js/commit/52ceec2229dc132b76da4e022c91474344f2d906), [#9581](https://github.com/angular/angular.js/issues/9581)) - **testability:** escape regex chars in `findBindings` if using `exactMatch` ([02aa4f4b](https://github.com/angular/angular.js/commit/02aa4f4b85ee15922a1f2de8ba78f562c18518d0), [#9595](https://github.com/angular/angular.js/issues/9595), [#9600](https://github.com/angular/angular.js/issues/9600)) ## Features - **$compile:** allow $watchCollection to be used in bi-directional bindings ([40bbc981](https://github.com/angular/angular.js/commit/40bbc9817845bf75581daee5d0ec30980affb0f5), [#9725](https://github.com/angular/angular.js/issues/9725)) - **ngSanitize:** accept SVG elements and attributes ([a54b25d7](https://github.com/angular/angular.js/commit/a54b25d77999a85701dfc5396fef78e586a99667), [#9578](https://github.com/angular/angular.js/issues/9578), [#9751](https://github.com/angular/angular.js/issues/9751)) # 1.3.0 superluminal-nudge (2014-10-13) ## Bug Fixes - **$browser:** - account for IE deserializing history.state on each read ([1efaf3dc](https://github.com/angular/angular.js/commit/1efaf3dc136f822703a9cda55afac7895a923ccb), [#9587](https://github.com/angular/angular.js/issues/9587), [#9545](https://github.com/angular/angular.js/issues/9545)) - do not decode cookies that do not appear encoded ([9c995905](https://github.com/angular/angular.js/commit/9c9959059eb84f0f1d748b70b50ec47b7d23d065), [#9211](https://github.com/angular/angular.js/issues/9211), [#9225](https://github.com/angular/angular.js/issues/9225)) - **$http:** - allow empty json response ([9ba24c54](https://github.com/angular/angular.js/commit/9ba24c54d60e643b1450cc5cfa8f990bd524c130), [#9532](https://github.com/angular/angular.js/issues/9532), [#9562](https://github.com/angular/angular.js/issues/9562)) - don't run transformData on HEAD methods ([6e4955a3](https://github.com/angular/angular.js/commit/6e4955a3086555d8ca30c29955faa213b39c6f27), [#9528](https://github.com/angular/angular.js/issues/9528), [#9529](https://github.com/angular/angular.js/issues/9529)) - **$injector:** ensure $get method invoked with provider context ([372fa699](https://github.com/angular/angular.js/commit/372fa6993b2b1b4848aa4be3c3e11f69244fca6f), [#9511](https://github.com/angular/angular.js/issues/9511), [#9512](https://github.com/angular/angular.js/issues/9512)) - **$location:** use clone of passed search() object ([c7a9009e](https://github.com/angular/angular.js/commit/c7a9009e143299f0e45a85d715ff22fc676d3f93), [#9445](https://github.com/angular/angular.js/issues/9445)) - **$parse:** stabilize one-time literal expressions correctly ([874cac82](https://github.com/angular/angular.js/commit/874cac825bf29a936cb1b35f9af239687bc5e036)) - **formController:** remove scope reference when form is destroyed ([01f50e1a](https://github.com/angular/angular.js/commit/01f50e1a7b2bff7070616494774ec493f8133204), [#9315](https://github.com/angular/angular.js/issues/9315)) - **jqLite:** remove native listener when all jqLite listeners were deregistered ([d71fb6f2](https://github.com/angular/angular.js/commit/d71fb6f2713f1a636f6e9c25479870ee9941ad18), [#9509](https://github.com/angular/angular.js/issues/9509)) - **select:** - add basic track by and select as support ([addfff3c](https://github.com/angular/angular.js/commit/addfff3c46311f59bdcd100351260006d457316f), [#6564](https://github.com/angular/angular.js/issues/6564)) - manage select controller options correctly ([2435e2b8](https://github.com/angular/angular.js/commit/2435e2b8f84fde9495b8e9440a2b4f865b1ff541), [#9418](https://github.com/angular/angular.js/issues/9418)) ## Features - **$anchorScroll:** support a configurable vertical scroll offset ([09c39d2c](https://github.com/angular/angular.js/commit/09c39d2ce687cdf0ac35dbb34a91f0d198c9d83a), [#9368](https://github.com/angular/angular.js/issues/9368), [#2070](https://github.com/angular/angular.js/issues/2070), [#9360](https://github.com/angular/angular.js/issues/9360)) - **$animate:** - introduce the $animate.animate() method ([02be700b](https://github.com/angular/angular.js/commit/02be700bda191b454de393f2805916f374a1d764)) - allow $animate to pass custom styles into animations ([e5f4d7b1](https://github.com/angular/angular.js/commit/e5f4d7b10ae5e6a17ab349995451c33b7d294245)) - **currencyFilter:** add fractionSize as optional parameter ([20685ffe](https://github.com/angular/angular.js/commit/20685ffe11036d4d604d13f0d792ca46497af4a1), [#3642](https://github.com/angular/angular.js/issues/3642), [#3461](https://github.com/angular/angular.js/issues/3461), [#3642](https://github.com/angular/angular.js/issues/3642), [#7922](https://github.com/angular/angular.js/issues/7922)) - **jqLite:** add private jqLiteDocumentLoaded function ([0dd316ef](https://github.com/angular/angular.js/commit/0dd316efea209e5e5de3e456b4e6562f011a1294)) ## Breaking Changes - **$animate:** due to [e5f4d7b1](https://github.com/angular/angular.js/commit/e5f4d7b10ae5e6a17ab349995451c33b7d294245), staggering animations that use transitions will now always block the transition from starting (via `transition: 0s none`) up until the stagger step kicks in. The former behaviour was that the block was removed as soon as the pending class was added. This fix allows for styles to be applied in the pending class without causing an animation to trigger prematurely. # 1.3.0-rc.5 impossible-choreography (2014-10-08) ## Bug Fixes - **$anchorScroll:** don't scroll to top when initializing and location hash is empty ([d5445c60](https://github.com/angular/angular.js/commit/d5445c601fafd6ecd38befeaa4c9ec7bb044127c), [#8848](https://github.com/angular/angular.js/issues/8848), [#9393](https://github.com/angular/angular.js/issues/9393)) - **$animate:** - ensure hidden elements with ngShow/ngHide stay hidden during animations ([39d0b368](https://github.com/angular/angular.js/commit/39d0b36826a077f7549a70d0cf3edebe90a10aaa), [#9103](https://github.com/angular/angular.js/issues/9103), [#9493](https://github.com/angular/angular.js/issues/9493)) - permit class-based animations for leave operations if ngAnimateChildren is enabled ([df1a00b1](https://github.com/angular/angular.js/commit/df1a00b11ac2722f4da441837795985f12682030), [#8092](https://github.com/angular/angular.js/issues/8092), [#9491](https://github.com/angular/angular.js/issues/9491)) - ensure that class-based animations only consider the most recent DOM operations ([c93924ed](https://github.com/angular/angular.js/commit/c93924ed275a62683b85c82f1c6c2e19d5662c9a), [#8946](https://github.com/angular/angular.js/issues/8946), [#9458](https://github.com/angular/angular.js/issues/9458)) - abort class-based animations if the element is removed during digest ([613d0a32](https://github.com/angular/angular.js/commit/613d0a3212de8dc01c817ca8526e09c57978a621), [#8796](https://github.com/angular/angular.js/issues/8796)) - clear the GCS cache even when no animation is detected ([cb85cbce](https://github.com/angular/angular.js/commit/cb85cbcec1c876db6062a0dc0bad80f842782194), [#8813](https://github.com/angular/angular.js/issues/8813)) - **$browser:** - Cache `location.href` only during page reload phase ([8ee1ba4b](https://github.com/angular/angular.js/commit/8ee1ba4b94d6fccff06d8781f7ed256c6ce664ff), [#9235](https://github.com/angular/angular.js/issues/9235), [#9455](https://github.com/angular/angular.js/issues/9455)) - don’t use the history API when only the hash changes ([7cb01a80](https://github.com/angular/angular.js/commit/7cb01a80beec669d8f6aae1dc211d2f0b7d4eac4), [#9423](https://github.com/angular/angular.js/issues/9423), [#9424](https://github.com/angular/angular.js/issues/9424), [858360b6](https://github.com/angular/angular.js/commit/858360b680a2bb5c19429c1be1c9506700cda476), [0656484d](https://github.com/angular/angular.js/commit/0656484d3e709c5162570b0dd6473b0b6140e5b2), [#9143](https://github.com/angular/angular.js/issues/9143), [#9406](https://github.com/angular/angular.js/issues/9406)) - handle async href on url change in <=IE9 ([404b95fe](https://github.com/angular/angular.js/commit/404b95fe30a1bcd1313adafbd0018578d5b21d3d), [#9235](https://github.com/angular/angular.js/issues/9235)) - **$compile:** - handle the removal of an interpolated attribute ([a75546af](https://github.com/angular/angular.js/commit/a75546afdf41adab786eda30c258190cd4c5f1ae), [#9236](https://github.com/angular/angular.js/issues/9236), [#9240](https://github.com/angular/angular.js/issues/9240)) - remove comment nodes from templates before asserting single root node ([feba0174](https://github.com/angular/angular.js/commit/feba0174db0f8f929273beb8b90691734a9292e2), [#9212](https://github.com/angular/angular.js/issues/9212), [#9215](https://github.com/angular/angular.js/issues/9215)) - use the correct namespace for transcluded svg elements ([f3539f3c](https://github.com/angular/angular.js/commit/f3539f3cb5d9477f50f065c6a0ac7d6ca0a31092), [#9344](https://github.com/angular/angular.js/issues/9344), [#9415](https://github.com/angular/angular.js/issues/9415)) - **$http:** honor application/json response header and parse json primitives ([7b6c1d08](https://github.com/angular/angular.js/commit/7b6c1d08aceba6704a40302f373400aed9ed0e0b), [#2973](https://github.com/angular/angular.js/issues/2973)) - **$injector:** throw when factory $get method does not return a value ([0d3b69a5](https://github.com/angular/angular.js/commit/0d3b69a5f27b41745b504c7ffd8d72653bac1f85), [#4575](https://github.com/angular/angular.js/issues/4575), [#9210](https://github.com/angular/angular.js/issues/9210)) - **$location:** allow `0` in `path()` and `hash()` ([b8c5b871](https://github.com/angular/angular.js/commit/b8c5b87119a06edb8e8d1cefad81ee8d1f64f070)) - **form:** fix submit prevention ([86c7d122](https://github.com/angular/angular.js/commit/86c7d1221c706993044583d51a0c61423fee5bcf), [#3370](https://github.com/angular/angular.js/issues/3370), [#3776](https://github.com/angular/angular.js/issues/3776)) - **ngAnimate:** defer DOM operations for changing classes to postDigest ([667183a8](https://github.com/angular/angular.js/commit/667183a8c79d6ffce571a2be78c05dc76503b222), [#8234](https://github.com/angular/angular.js/issues/8234), [#9263](https://github.com/angular/angular.js/issues/9263)) - **orderBy:** sort by identity if no predicate is given ([607f016a](https://github.com/angular/angular.js/commit/607f016a0ba705ce40df0164360fb96a9d7f5912), [#5847](https://github.com/angular/angular.js/issues/5847), [#4579](https://github.com/angular/angular.js/issues/4579), [#9403](https://github.com/angular/angular.js/issues/9403)) - **select:** - throw for `selectAs` and `trackBy` ([30996f82](https://github.com/angular/angular.js/commit/30996f82afa03cd11771b3267e9367ecf9af6e6d)) - use `$viewValue` instead of `$modelValue` ([f7174169](https://github.com/angular/angular.js/commit/f7174169f4f710d605f6a67f39f90a67a07d4cab), [#8929](https://github.com/angular/angular.js/issues/8929)) ## Features - **$location:** - add support for History API state handling ([6fd36dee](https://github.com/angular/angular.js/commit/6fd36deed954b338e48390862971d465148dc1f2), [#9027](https://github.com/angular/angular.js/issues/9027)) - allow automatic rewriting of links to be disabled ([b3e09be5](https://github.com/angular/angular.js/commit/b3e09be58960b913fee3869bf36e7de3305bbe00), [#5487](https://github.com/angular/angular.js/issues/5487)) - **$route:** ability to cancel $routeChangeStart event ([f4ff11b0](https://github.com/angular/angular.js/commit/f4ff11b01e6a5f9a9eb25a38d327dfaadbd7c80c), [#5581](https://github.com/angular/angular.js/issues/5581), [#5714](https://github.com/angular/angular.js/issues/5714), [#9502](https://github.com/angular/angular.js/issues/9502)) ## Performance Improvements - **$animate:** - access DOM less in resolveElementClasses ([22358cf9](https://github.com/angular/angular.js/commit/22358cf9c703d67f3cf9eb4899404b09578a5fad)) - don't join classes before it's necessary in resolveElementClasses ([003c44ec](https://github.com/angular/angular.js/commit/003c44eceee54c3398b0d2971fd97a512d7f7cec)) - **ngBind:** set textContent rather than using element.text() ([074a146d](https://github.com/angular/angular.js/commit/074a146d8b1ee7c93bf6d5892448a5c2a0143a28), [#9369](https://github.com/angular/angular.js/issues/9369), [#9396](https://github.com/angular/angular.js/issues/9396)) ## Breaking Changes - **$compile:** due to [feba0174](https://github.com/angular/angular.js/commit/feba0174db0f8f929273beb8b90691734a9292e2), If a template contains directives within comment nodes, and there is more than a single node in the template, those comment nodes are removed. The impact of this breaking change is expected to be quite low. Closes #9212 Closes #9215 - **ngAnimate:** due to [667183a8](https://github.com/angular/angular.js/commit/667183a8c79d6ffce571a2be78c05dc76503b222), The `$animate` CSS class API will always defer changes until the end of the next digest. This allows ngAnimate to coalesce class changes which occur over a short period of time into 1 or 2 DOM writes, rather than many. This prevents jank in browsers such as IE, and is generally a good thing. If you find that your classes are not being immediately applied, be sure to invoke `$digest()`. Closes #8234 Closes #9263 - **$select:** due to [30996f8](https://github.com/angular/angular.js/commit/30996f82afa03cd11771b3267e9367ecf9af6e6d) `ngOptions` will now throw an error when the comprehension expressions contains both a `select as` and `track by` expression. These expressions are fundamentally incompatible because it is not possible to reliably and consistently determine the parent object of a model, since `select as` can assign any child of a `value` as the model value. Prior to refactorings in this release, neither of these expressions worked correctly independently, and did not work at all when combined. See #6564 - **$route:** due to [f4ff11b0](https://github.com/angular/angular.js/commit/f4ff11b01e6a5f9a9eb25a38d327dfaadbd7c80c), Order of events has changed. Previously: `$locationChangeStart` -> `$locationChangeSuccess` -> `$routeChangeStart` -> `$routeChangeSuccess` Now: `$locationChangeStart` -> `$routeChangeStart` -> `$locationChangeSuccess` -> -> `$routeChangeSuccess` Fixes #5581 Closes #5714 Closes #9502- **ngAnimate:** due to [667183a8](https://github.com/angular/angular.js/commit/667183a8c79d6ffce571a2be78c05dc76503b222), The $animate class API will always defer changes until the end of the next digest. This allows ngAnimate to coalesce class changes which occur over a short period of time into 1 or 2 DOM writes, rather than many. This prevents jank in browsers such as IE, and is generally a good thing. If you're finding that your classes are not being immediately applied, be sure to invoke $digest(). Closes #8234 Closes #9263 # 1.3.0-rc.4 unicorn-hydrafication (2014-10-01) ## Bug Fixes - **$compile:** - get $$observe listeners array as own property ([a27d827c](https://github.com/angular/angular.js/commit/a27d827c22b0b6b3ba6b7495cf4fc338c6934b37), [#9343](https://github.com/angular/angular.js/issues/9343), [#9345](https://github.com/angular/angular.js/issues/9345)) - Resolve leak with asynchronous compilation ([6303c3dc](https://github.com/angular/angular.js/commit/6303c3dcf64685458fc84aa12289f5c9d57f4e47), [#9199](https://github.com/angular/angular.js/issues/9199), [#9079](https://github.com/angular/angular.js/issues/9079), [#8504](https://github.com/angular/angular.js/issues/8504), [#9197](https://github.com/angular/angular.js/issues/9197)) - connect transclude scopes to their containing scope to prevent memory leaks ([fb0c77f0](https://github.com/angular/angular.js/commit/fb0c77f0b66ed757a56af13f81b943419fdcbd7f), [#9095](https://github.com/angular/angular.js/issues/9095), [#9281](https://github.com/angular/angular.js/issues/9281)) - sanitize srcset attribute ([ab80cd90](https://github.com/angular/angular.js/commit/ab80cd90661396dbb1c94c5f4dd2d11ee8f6b6af)) - **input:** - register builtin parsers/formatters before anyone else ([10644432](https://github.com/angular/angular.js/commit/10644432ca9d5da69ce790a8d9e691640f333711), [#9218](https://github.com/angular/angular.js/issues/9218), [#9358](https://github.com/angular/angular.js/issues/9358)) - correctly handle invalid model values for `input[date/time/…]` ([a0bfdd0d](https://github.com/angular/angular.js/commit/a0bfdd0d60882125f614a91c321f12f730735e7b), [#8949](https://github.com/angular/angular.js/issues/8949), [#9375](https://github.com/angular/angular.js/issues/9375)) - **ngModel:** do not parse undefined viewValue when validating ([92f05e5a](https://github.com/angular/angular.js/commit/92f05e5a5900713301e64373d7b7daa45a88278b), [#9106](https://github.com/angular/angular.js/issues/9106), [#9260](https://github.com/angular/angular.js/issues/9260)) - **ngView:** use animation promises ensure that only one leave animation occurs at a time ([3624e380](https://github.com/angular/angular.js/commit/3624e3800fb3ccd2e9ea361a763e20131fd42c29), [#9355](https://github.com/angular/angular.js/issues/9355), [#7606](https://github.com/angular/angular.js/issues/7606), [#9374](https://github.com/angular/angular.js/issues/9374)) - **select:** make ctrl.hasOption method consistent ([2bcd02dc](https://github.com/angular/angular.js/commit/2bcd02dc1a6b28b357d47c83be3bed5c9a38417c), [#8761](https://github.com/angular/angular.js/issues/8761)) ## Features - **$compile:** optionally get controllers from ancestors only ([07e3abc7](https://github.com/angular/angular.js/commit/07e3abc7dda872adc3fb25cb3e133f86f494b35d), [#4518](https://github.com/angular/angular.js/issues/4518), [#4540](https://github.com/angular/angular.js/issues/4540), [#8240](https://github.com/angular/angular.js/issues/8240), [#8511](https://github.com/angular/angular.js/issues/8511)) - **Scope:** allow the parent of a new scope to be specified on creation ([6417a3e9](https://github.com/angular/angular.js/commit/6417a3e9eb7ab0011cefada8db855aa929a64ff8)) ## Performance Improvements - **$rootScope:** moving internal queues out of the Scope instances ([b1192518](https://github.com/angular/angular.js/commit/b119251827cea670051198e1b48af7ee0c9f2a1b), [#9071](https://github.com/angular/angular.js/issues/9071)) - **benchmark:** add ngBindOnce benchmarks to largetable-bp ([2c8b4648](https://github.com/angular/angular.js/commit/2c8b4648526acf5c2645de8408a6d9ace2144b5f)) - **ngForm,ngModel:** move initial addClass to the compile phase ([b1ee5386](https://github.com/angular/angular.js/commit/b1ee5386d584f208bce6d3b613afdb3bae9df76a), [#8268](https://github.com/angular/angular.js/issues/8268)) ## Breaking Changes - **$compile:** due to [fb0c77f0](https://github.com/angular/angular.js/commit/fb0c77f0b66ed757a56af13f81b943419fdcbd7f), `$transclude` functions no longer attach `$destroy` event handlers to the transcluded content, and so the associated transclude scope will not automatically be destroyed if you remove a transcluded element from the DOM using direct DOM manipulation such as the jquery `remove()` method. If you want to explicitly remove DOM elements inside your directive that have been compiled, and so potentially contain child (and transcluded) scopes, then it is your responsibility to get hold of the scope and destroy it at the same time. The suggested approach is to create a new child scope of your own around any DOM elements that you wish to manipulate in this way and destroy those scopes if you remove their contents - any child scopes will then be destroyed and cleaned up automatically. Note that all the built-in directives that manipulate the DOM (ngIf, ngRepeat, ngSwitch, etc) already follow this best practice, so if you only use these for manipulating the DOM then you do not have to worry about this change. Closes #9095 Closes #9281 - **$parse:** due to [5572b40b](https://github.com/angular/angular.js/commit/5572b40b15ed06969c8e0e92866c5afd088484b4), - $scope['this'] no longer exits on the $scope object - $parse-ed expressions no longer allow chaining 'this' such as this['this'] or $parent['this'] - 'this' in $parse-ed expressions can no longer be overriden, if a variable named 'this' is put on the scope it must be accessed using this['this'] Closes #9105 - **input:** due to [1eda1836](https://github.com/angular/angular.js/commit/1eda18365a348c9597aafba9d195d345e4f13d1e), (Note: this change landed in 1.3.0-rc.3, but was not considered a breaking change at the time). For text based inputs (text, email, url), the `$viewValue` will now always be converted to a string, regardless of what type the value is on the model. To migrate, any code or expressions that expect the `$viewValue` to be anything other than string should be updated to expect a string. - **input:** due to a0bfdd0d60882125f614a91c321f12f730735e7b (see #8949), Similar to `input[number]` Angular will now throw if the model value for a `input[date]` is not a `Date` object. Previously, Angular only showed an empty string instead. Angular does not set validation errors on the `` in this case as those errors are shown to the user, but the erroneous state was caused by incorrect application logic and not by the user. # 1.2.26 captivating-disinterest (2014-10-01) ## Bug Fixes - **$compile:** Resolve leak with asynchronous compilation ([5c9c1973](https://github.com/angular/angular.js/commit/5c9c19730526d5df6f16c523e578e5305f3796d0), [#9199](https://github.com/angular/angular.js/issues/9199), [#9079](https://github.com/angular/angular.js/issues/9079), [#8504](https://github.com/angular/angular.js/issues/8504), [#9197](https://github.com/angular/angular.js/issues/9197)) - **select:** make ctrl.hasOption method consistent ([11d2242d](https://github.com/angular/angular.js/commit/11d2242df65b2ade0dabe366a0c42963b6d37df5), [#8761](https://github.com/angular/angular.js/issues/8761)) # 1.3.0-rc.3 aggressive-pacification (2014-09-23) ## Bug Fixes - **ngModel:** support milliseconds in time and datetime ([4b83f6ca](https://github.com/angular/angular.js/commit/4b83f6ca2c15bd65fe2b3894a02c04f9967fbff4), [#8874](https://github.com/angular/angular.js/issues/8874)) ## Features - **$location:** add ability to opt-out of `` tag requirement in html5Mode ([dc3de7fb](https://github.com/angular/angular.js/commit/dc3de7fb7a14c38b5c3dc7decfafb0b51d422dd1), [#8934](https://github.com/angular/angular.js/issues/8934)) - **formController:** add $setUntouched to propagate untouched state ([fd899755](https://github.com/angular/angular.js/commit/fd8997551f9ed4431f5e99d61f637139485076b9), [#9050](https://github.com/angular/angular.js/issues/9050)) - **input:** support dynamic element validation ([729c238e](https://github.com/angular/angular.js/commit/729c238e19ab27deff01448d79342ea53721bfed), [#4791](https://github.com/angular/angular.js/issues/4791), [#1404](https://github.com/angular/angular.js/issues/1404)) - **ngAria:** add an ngAria module to make a11y easier ([d1434c99](https://github.com/angular/angular.js/commit/d1434c999a66c6bb915ee1a8b091e497d288d940), [#5486](https://github.com/angular/angular.js/issues/5486)) ## Performance Improvements - **map:** use Array.prototype.map ([a591e8b8](https://github.com/angular/angular.js/commit/a591e8b8d302efefd67bf0d5c4bad300a5f3aded)) ## Breaking Changes - **$location:** due to [dc3de7fb](https://github.com/angular/angular.js/commit/dc3de7fb7a14c38b5c3dc7decfafb0b51d422dd1), The $location.html5Mode API has changed to allow enabling html5Mode by passing an object (as well as still supporting passing a boolean). Symmetrically, the method now returns an object instead of a boolean value. To migrate, follow the code example below: Before: var mode = $locationProvider.html5Mode(); After: var mode = $locationProvider.html5Mode().enabled; Fixes #8934 # 1.2.25 hypnotic-gesticulation (2014-09-16) ## Bug Fixes - **i18n:** fix typo at i18n generation code ([1b6d74cc](https://github.com/angular/angular.js/commit/1b6d74cc9f7f7b7bd529abe6ce612de3ae661601)) - **ngLocale:** Regenerate Locale Files ([06c76694](https://github.com/angular/angular.js/commit/06c76694ac9b2280594712e6a4b46a1d5987d098)) - **select:** update option labels when model changes ([d89d59f4](https://github.com/angular/angular.js/commit/d89d59f453d4e28be4f595fea7e2c4ff2338351f), [#9025](https://github.com/angular/angular.js/issues/9025)) # 1.3.0-rc.2 tactile-perception (2014-09-16) ## Bug Fixes - **$compile:** update `'@'`-bindings in controller when `bindToController` is `true` ([e7ac08a0](https://github.com/angular/angular.js/commit/e7ac08a0619d2bdc91c125d341772b4fbc0d5a78), [#9052](https://github.com/angular/angular.js/issues/9052), [#9077](https://github.com/angular/angular.js/issues/9077)) - **$parse:** ensure CSP assignable expressions have `assign()` ([d13b4bd1](https://github.com/angular/angular.js/commit/d13b4bd1f5f2abaad00f5d1bf81f79549a8d0e46), [#9048](https://github.com/angular/angular.js/issues/9048)) - **i18n:** fix typo at i18n generation code ([eb4afd45](https://github.com/angular/angular.js/commit/eb4afd45f77d7d67744e01ce63a831c13c2b22e8)) - **input:** always pass in the model value to `ctrl.$isEmpty` ([3e51b84b](https://github.com/angular/angular.js/commit/3e51b84bc19f7e6acc61cb536ddcdbfed307c831), [#5164](https://github.com/angular/angular.js/issues/5164), [#9017](https://github.com/angular/angular.js/issues/9017)) - **jqLite:** fix `event.stopImmediatePropagation()` so it works as expected ([30354c58](https://github.com/angular/angular.js/commit/30354c58fe2bd371df364f7a3f55b270692a4051), [#4833](https://github.com/angular/angular.js/issues/4833)) - **ngLocale:** Regenerate Locale Files ([6a96a820](https://github.com/angular/angular.js/commit/6a96a8200aff4749bc84c44a1e8018b09d9ebdb4), [#8931](https://github.com/angular/angular.js/issues/8931), [#8583](https://github.com/angular/angular.js/issues/8583), [#7799](https://github.com/angular/angular.js/issues/7799)) - **ngModel:** - do not reset bound date objects ([1a1ef629](https://github.com/angular/angular.js/commit/1a1ef62903c8fdf4ceb81277d966a8eff67f0a96), [#6666](https://github.com/angular/angular.js/issues/6666)) - don’t clear the model when an external validator failed ([9314719d](https://github.com/angular/angular.js/commit/9314719d1eb5f480b877f5513f6e0e474edcb67d), [#8357](https://github.com/angular/angular.js/issues/8357), [#8080](https://github.com/angular/angular.js/issues/8080)) - **ngResource:** make badcfg error message more helpful ([a3962f0d](https://github.com/angular/angular.js/commit/a3962f0df3f9b8382b47952f9e4fcb48a4cc098b), [#9005](https://github.com/angular/angular.js/issues/9005), [#9010](https://github.com/angular/angular.js/issues/9010)) - **select:** update option labels when model changes ([46274102](https://github.com/angular/angular.js/commit/46274102454038ee7fd4543a32166e9bbbc98904), [#9025](https://github.com/angular/angular.js/issues/9025)) ## Features - **limitTo:** support numeric input to limitTo ([1c8a7459](https://github.com/angular/angular.js/commit/1c8a7459c90efc77b1a0987f976e3bddab4565fe), [#8926](https://github.com/angular/angular.js/issues/8926)) - **ngInclude:** add template url parameter to events ([fd2d6c02](https://github.com/angular/angular.js/commit/fd2d6c02f9654e753d3655a3377a9534f7a54de3), [#8453](https://github.com/angular/angular.js/issues/8453), [#8454](https://github.com/angular/angular.js/issues/8454)) ## Performance Improvements - **$compile:** move `$$isolateBinding` creation to directive factory instead of on each link ([56f09f0b](https://github.com/angular/angular.js/commit/56f09f0b44048b62f964d29db4d3d2630662f6ea)) - **$parse:** - execute watched expressions only when the inputs change ([fca6be71](https://github.com/angular/angular.js/commit/fca6be71274e537c7df86ae9e27a3bd1597e9ffa), [#9006](https://github.com/angular/angular.js/issues/9006), [#9082](https://github.com/angular/angular.js/issues/9082)) - remove `binaryFn` and `valueFn` wrappers from filter expressions ([67919c80](https://github.com/angular/angular.js/commit/67919c808771a9b185a9d552cd32a90748d36666)) ## Breaking Changes - **$parse:** due to [fca6be71](https://github.com/angular/angular.js/commit/fca6be71274e537c7df86ae9e27a3bd1597e9ffa), all filters are assumed to be stateless functions Previously it was just a good practice to make all filters stateless. Now it's a requirement in order for the model change-observation to pick up all changes. If an existing filter is statefull, it can be flagged as such but keep in mind that this will result in a significant performance-penalty (or rather lost opportunity to benefit from a major perf improvement) that will affect the `$digest` duration. To flag a filter as stateful do the following: ```javascript myApp.filter('myFilter', function() { function myFilter(input) { ... }; myFilter.$stateful = true; return myFilter; }); ``` # 1.3.0-rc.1 backyard-atomicity (2014-09-09) ## Bug Fixes - **$location:** - don't call toString on null values ([c3a58a9f](https://github.com/angular/angular.js/commit/c3a58a9f34919f121587540e03ecbd51b25198d4)) - remove an unused parameter of $location.url ([99d95f16](https://github.com/angular/angular.js/commit/99d95f1639b64c39231448d77209676b54e6f0be)) - allow numeric location setter arguments ([adb5c6d6](https://github.com/angular/angular.js/commit/adb5c6d6cc76b928436743707727ab0974d6810b), [#7054](https://github.com/angular/angular.js/issues/7054)) - set `baseHref` in mock browser to `/` ([fc706d13](https://github.com/angular/angular.js/commit/fc706d13d80bb40eb3dade58ea4b92dca33ce4e7), [#8866](https://github.com/angular/angular.js/issues/8866), [#8889](https://github.com/angular/angular.js/issues/8889)) - **$parse:** disallow passing Function to Array.sort ([bd8ad0fb](https://github.com/angular/angular.js/commit/bd8ad0fbe81f6c280baa26a596d78e58fc7842e6)) - **input:** check `scope.$$phase` only on `$rootScope` ([bf59d727](https://github.com/angular/angular.js/commit/bf59d7274f4a667c5b19e6d4ba5ed2730ca2fe42)) - **ngAnimate:** support removing classes from SVG elements when using jQuery ([b3b67213](https://github.com/angular/angular.js/commit/b3b672130d4d1c6f13bdf7e58be76b2aafea2497), [#8872](https://github.com/angular/angular.js/issues/8872), [#8893](https://github.com/angular/angular.js/issues/8893)) - **ngEventDirs:** check `scope.$$phase` only on `$rootScope` ([203ea10f](https://github.com/angular/angular.js/commit/203ea10f9ea49d7e29569a4232d3b2a666307cd8), [#8891](https://github.com/angular/angular.js/issues/8891)) - **ngForm:** don't clear validity of whole form when removing control ([953ee22f](https://github.com/angular/angular.js/commit/953ee22f76f8c1137949ed07f36fafc5bbfeb7fe), [#8863](https://github.com/angular/angular.js/issues/8863)) - **ngInclude:** correctly add svg-namespaced template content ([6639ca9d](https://github.com/angular/angular.js/commit/6639ca9d6bc00a6e3a31e54c50474361ae3561c6), [#7538](https://github.com/angular/angular.js/issues/7538), [#8981](https://github.com/angular/angular.js/issues/8981), [#8997](https://github.com/angular/angular.js/issues/8997)) - **ngModel:** - update model value with async validators correctly ([64c3b745](https://github.com/angular/angular.js/commit/64c3b745fba0792166f30e057f9251f263d80dac)) - render immediately also with async validators ([f94d5515](https://github.com/angular/angular.js/commit/f94d551529b7c970c38b29e3073cec4e7f6b0e00)) - properly parse min/max date values as strings for date inputs ([088545c1](https://github.com/angular/angular.js/commit/088545c1856ce1c3ec3416965dff65077a6e0523), [#6755](https://github.com/angular/angular.js/issues/6755)) - revalidate the model when min/max expression values change for date inputs ([b3502835](https://github.com/angular/angular.js/commit/b3502835039178296b730b7526e5666b66ba9156), [#6755](https://github.com/angular/angular.js/issues/6755)) - consider ngMin/ngMax values when validating number input types ([25541c1f](https://github.com/angular/angular.js/commit/25541c1f876a16c892d71faae11727bec7bba98c)) - revalidate the model when min/max expression values change for number inputs ([7b273a2c](https://github.com/angular/angular.js/commit/7b273a2c978d5f5ef374f5335afab0ca7d8cfd4d), [#2404](https://github.com/angular/angular.js/issues/2404)) - **ngModelOptions:** do not trigger digest on `setViewValue` if debouncing ([e322cd9b](https://github.com/angular/angular.js/commit/e322cd9b3b8b47b95c9de3edf631bb46f919c492), [#8814](https://github.com/angular/angular.js/issues/8814), [#8850](https://github.com/angular/angular.js/issues/8850), [#8911](https://github.com/angular/angular.js/issues/8911)) - **ngRepeat:** preserve original position of elements that are being animated away ([ed637330](https://github.com/angular/angular.js/commit/ed6373300028deda9a0878b3975699d183c1f75c), [#8918](https://github.com/angular/angular.js/issues/8918), [#8994](https://github.com/angular/angular.js/issues/8994)) - **ngSwitch:** ensure correct iterator is passed to async function ([712299c2](https://github.com/angular/angular.js/commit/712299c2a24390e74cd5c20f51cb1d78f0233b6f), [#8833](https://github.com/angular/angular.js/issues/8833)) - **numberFilter:** format numbers that round to zero as nonnegative ([ae952fbf](https://github.com/angular/angular.js/commit/ae952fbf0be925a48743d1c925ffe4e31a42c280), [#8489](https://github.com/angular/angular.js/issues/8489)) - **orderBy:** allow arrayLike objects to be ordered ([cbdaabfb](https://github.com/angular/angular.js/commit/cbdaabfb59bf3348588d5b581f2754e0f9f034a4), [#8944](https://github.com/angular/angular.js/issues/8944)) ## Features - **angular.forEach:** add the array/object as the 3rd param like the native array forEach ([df9e60c8](https://github.com/angular/angular.js/commit/df9e60c8e7453cdca2cb5a4fa48f3981ecc23a7d), [#7902](https://github.com/angular/angular.js/issues/7902)) - **ngModelOptions:** add allowInvalid option ([3c538c1d](https://github.com/angular/angular.js/commit/3c538c1d21c43422c7b4cd9b69cb67981bce2b87), [#8290](https://github.com/angular/angular.js/issues/8290), [#8313](https://github.com/angular/angular.js/issues/8313)) ## Performance Improvements - **$parse:** - remove getterFn wrapper for internal use ([b3b476db](https://github.com/angular/angular.js/commit/b3b476db7d34bc2f8b099ab5b993b1e899b9cffd), [#8901](https://github.com/angular/angular.js/issues/8901)) - removing references to Parser/Lexer from parsed expressions ([43c67ccd](https://github.com/angular/angular.js/commit/43c67ccd167aecc3549e1b7f7d100956204e3ed4)) - calculate array lengths once at start of loop ([907b8c16](https://github.com/angular/angular.js/commit/907b8c1675865ac38dd055f3f304272e68b233d0)) - **extend:** remove use of forEach to remove calls/closures/passing arguments ([9bedeb33](https://github.com/angular/angular.js/commit/9bedeb3353969fba631ad9164edea3c38059fbda), [#8898](https://github.com/angular/angular.js/issues/8898)) - **jQuery:** only trigger $destroy if a handler exists ([f6aa1c55](https://github.com/angular/angular.js/commit/f6aa1c55616b34215f562e0445e436210860ef04), [#8859](https://github.com/angular/angular.js/issues/8859)) ## Breaking Changes - **ngModelController,formController:** due to [6046e14b](https://github.com/angular/angular.js/commit/6046e14bd22491168116e61ffdf5fd3fed5f135c), - `ctrl.$error` no longer contains entries for validators that were successful. - `ctrl.$setValidity` now differentiates between `true`, `false`, `undefined` and `null`, instead of previously only truthy vs falsy. Closes #8941- **ngSwitch:** due to [0f806d96](https://github.com/angular/angular.js/commit/0f806d9659b5b89a4bd9493364bc36398677e939), Ever since 0df93fd, tagged in v1.0.0rc1, the ngSwitch directive has had an undocumented `change` attribute, used for evaluating a scope expression when the switch value changes. While it's unlikely, applications which may be using this feature should work around the removal by adding a custom directive which will perform the eval instead. Directive controllers are re-instantiated when being transcluded, so by putting the attribute on each item that you want to be notified of a change to, you can more or less emulate the old behaviour. Example: ```js angular.module("switchChangeWorkaround", []). directive("onSwitchChanged", function() { return { link: function($scope, $element, $attrs) { $scope.$parent.$eval($attrs.onSwitchChanged); } }; }); ``` ```html
``` Closes #8858 Closes #8822 # 1.2.24 static-levitation (2014-09-09) ## Bug Fixes - **$browser:** detect changes to the browser url that happened in sync ([2ece4d03](https://github.com/angular/angular.js/commit/2ece4d0347a8a18d4d35993bb882ed6b5b24266c), [#6976](https://github.com/angular/angular.js/issues/6976)) - **$compile:** - render nested transclusion at the root of a template ([9d9cdfb5](https://github.com/angular/angular.js/commit/9d9cdfb575b89e96ae957c986734a49995e2b511), [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https://github.com/angular/angular.js/issues/8925)) - render nested transclusion at the root of a template ([466320f6](https://github.com/angular/angular.js/commit/466320f6911698048bae5406e341d25af7efafa0), [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https://github.com/angular/angular.js/issues/8925)) - **$location:** - don't call toString on null values ([c12e8d46](https://github.com/angular/angular.js/commit/c12e8d4665b635ba6b09d12802efb88d38b7ad5c)) - remove an unused parameter of $location.url ([c65796d4](https://github.com/angular/angular.js/commit/c65796d496038554861e70da8012f9d0e2521e6d)) - allow numeric location setter arguments ([68a09ba7](https://github.com/angular/angular.js/commit/68a09ba74d10a1490feca1d248f85b0023aa399b), [#7054](https://github.com/angular/angular.js/issues/7054)) - **$parse:** disallow passing Function to Array.sort ([b39e1d47](https://github.com/angular/angular.js/commit/b39e1d47b9a1b39a9fe34c847a81f589fba522f8)) - **form:** ensure concurrent animations use setClass ([d7548fdf](https://github.com/angular/angular.js/commit/d7548fdf1ce6f543bf55d330985a83ef09d0cb83), [#8166](https://github.com/angular/angular.js/issues/8166)) - **input:** check `scope.$$phase` only on `$rootScope` ([36e6de1d](https://github.com/angular/angular.js/commit/36e6de1d91937d73e900ac115ae366fbefcdf6da)) - **ngEventDirs:** - check `scope.$$phase` only on `$rootScope` ([2712c2f1](https://github.com/angular/angular.js/commit/2712c2f1979db23eeb53be8a519b9f79bd75e217), [#8891](https://github.com/angular/angular.js/issues/8891)) - execute `blur` and `focus` expression using `scope.$evalAsync` ([54f0bc0f](https://github.com/angular/angular.js/commit/54f0bc0fe0c6b6d974d23f2c5ef07359dd93eb99), [#4979](https://github.com/angular/angular.js/issues/4979), [#5945](https://github.com/angular/angular.js/issues/5945), [#8803](https://github.com/angular/angular.js/issues/8803), [#6910](https://github.com/angular/angular.js/issues/6910), [#5402](https://github.com/angular/angular.js/issues/5402)) - **ngRepeat:** improve errors for duplicate items ([1812af58](https://github.com/angular/angular.js/commit/1812af58c2d470d586c2a543c9a7db3f0baca04f)) - **numberFilter:** format numbers that round to zero as nonnegative ([7e02fa07](https://github.com/angular/angular.js/commit/7e02fa07eb5b02e75b1db0058d638af3d1074942), [#8489](https://github.com/angular/angular.js/issues/8489)) - **orderBy:** allow arrayLike objects to be ordered ([94b0f2d3](https://github.com/angular/angular.js/commit/94b0f2d35de601ded3d93ea4fa78a4d9b139c0a0), [#8944](https://github.com/angular/angular.js/issues/8944)) ## Breaking Changes - **ngEventDirs:** due to [54f0bc0f](https://github.com/angular/angular.js/commit/54f0bc0fe0c6b6d974d23f2c5ef07359dd93eb99), The `blur` and `focus` event fire synchronously, also during DOM operations that remove elements. This lead to errors as the Angular model was not in a consistent state. See this [fiddle](http://jsfiddle.net/fq1dq5yb/) for a demo. This change executes the expression of those events using `scope.$evalAsync` if an `$apply` is in progress, otherwise keeps the old behavior. Fixes #4979 Fixes #5945 Closes #8803 Closes #6910 Closes #5402 # 1.3.0-RC.0 sonic-boltification (2014-08-29) ## Bug Fixes - **$animate:** - wait two until two digests are over until enabling animations ([92576743](https://github.com/angular/angular.js/commit/92576743eec0cef5ffdd701b83f72a61e6489c3b), [#8844](https://github.com/angular/angular.js/issues/8844)) - ensure guarded animations consider AJAX requests upon bootstrap ([4bca4c44](https://github.com/angular/angular.js/commit/4bca4c44b95a7435722605a750804043f2960160), [#8275](https://github.com/angular/angular.js/issues/8275), [#5262](https://github.com/angular/angular.js/issues/5262)) - use $timeout to handle the delay within staggering animations ([23da6140](https://github.com/angular/angular.js/commit/23da614043fe5dcf0be132b86466eecb11c766a2), [#7228](https://github.com/angular/angular.js/issues/7228), [#7547](https://github.com/angular/angular.js/issues/7547), [#8297](https://github.com/angular/angular.js/issues/8297), [#8547](https://github.com/angular/angular.js/issues/8547)) - **$browser:** detect changes to the browser url that happened in sync ([3be00df4](https://github.com/angular/angular.js/commit/3be00df495f6eed3b3d9587ebab1fdd633e94e08), [#6976](https://github.com/angular/angular.js/issues/6976)) - **$compile:** use the correct namespace for transcluded svg elements ([cb73a37c](https://github.com/angular/angular.js/commit/cb73a37c7cae5cdebadf7b3ddd44c5a452495e4e), [#8808](https://github.com/angular/angular.js/issues/8808), [#8816](https://github.com/angular/angular.js/issues/8816)) - **$location:** always resolve relative links in html5mode to `` url ([22948807](https://github.com/angular/angular.js/commit/22948807e324eb0b182b15b31045dc306a9f3231), [#8492](https://github.com/angular/angular.js/issues/8492), [#8172](https://github.com/angular/angular.js/issues/8172)) - **$parse:** properly handle dots at the end of identifiers ([8ac90357](https://github.com/angular/angular.js/commit/8ac90357a66ae0c62dbfe6db2c6eaf1d600ecc65), [#4613](https://github.com/angular/angular.js/issues/4613), [#4912](https://github.com/angular/angular.js/issues/4912), [#8559](https://github.com/angular/angular.js/issues/8559)) - **Angular:** remove duplicate nodeName_ references ([a4520a74](https://github.com/angular/angular.js/commit/a4520a745d917c77f1d12cdbce48272c643f7255)) - **currencyFilter:** pass through null and undefined values ([c2aaddbe](https://github.com/angular/angular.js/commit/c2aaddbe4b21348aab8c13a78cdd6aaee846ae4e), [#8605](https://github.com/angular/angular.js/issues/8605)) - **docs:** don't throw exception on the 404 page ([550ba01b](https://github.com/angular/angular.js/commit/550ba01b325fc29460030fc9c24fa00269dec2a9), [#8518](https://github.com/angular/angular.js/issues/8518)) - **input:** - validate minlength/maxlength for non-string values ([77ce5b89](https://github.com/angular/angular.js/commit/77ce5b89f97aa83c3eb1fe2e19375ef00a822015), [#7967](https://github.com/angular/angular.js/issues/7967), [#8811](https://github.com/angular/angular.js/issues/8811)) - allow to use seconds in `input[time]` and `input[datetime-local]` ([5f90340a](https://github.com/angular/angular.js/commit/5f90340abb78aa08dde4876328bcc00e46232e46)) - use year 1970 instead of 1900 for `input[time]` ([29f0b568](https://github.com/angular/angular.js/commit/29f0b568debab7810752969d363d337099e96cdc)) - **ngBindHtml:** throw error if interpolation is used in expression ([cd21602d](https://github.com/angular/angular.js/commit/cd21602d5b1650d8be373618cb7320d697e32c4d), [#8824](https://github.com/angular/angular.js/issues/8824)) - **ngEventDirs:** execute `blur` and `focus` expression using `scope.$evalAsync` ([719c747c](https://github.com/angular/angular.js/commit/719c747cd892ee933e7e414a7dc97e657b88317d), [#4979](https://github.com/angular/angular.js/issues/4979), [#5945](https://github.com/angular/angular.js/issues/5945), [#8803](https://github.com/angular/angular.js/issues/8803), [#6910](https://github.com/angular/angular.js/issues/6910), [#5402](https://github.com/angular/angular.js/issues/5402)) - **ngModel:** - always format the viewValue as a string for text, url and email types ([1eda1836](https://github.com/angular/angular.js/commit/1eda18365a348c9597aafba9d195d345e4f13d1e)) - allow non-assignable binding when getterSetter is used ([ab878a6c](https://github.com/angular/angular.js/commit/ab878a6c038f47b95f3a7e85a4fdb599e0c73e63), [#8704](https://github.com/angular/angular.js/issues/8704)) - treat undefined parse responses as parse errors ([db044c40](https://github.com/angular/angular.js/commit/db044c408a7f8082758b96ab739348810c36e15a)) - **ngRepeat:** improve errors for duplicate items ([0604bb7b](https://github.com/angular/angular.js/commit/0604bb7b7a6156e33679396e805e327662d9a178)) - **ngSwitch:** avoid removing DOM nodes twice within watch operation ([c9b0bfec](https://github.com/angular/angular.js/commit/c9b0bfecc99837af1c97792b3ca3408ba182b0bb), [#8662](https://github.com/angular/angular.js/issues/8662)) - **numberFilter:** pass through null and undefined values ([2ae10f67](https://github.com/angular/angular.js/commit/2ae10f67fcde3e172f695956301ef796b68a50c2), [#8605](https://github.com/angular/angular.js/issues/8605), [#8842](https://github.com/angular/angular.js/issues/8842)) ## Features - **core:** - add angular.reloadWithDebugInfo() ([41c1b88](https://github.com/angular/angular.js/commit/41c1b8858f02c7310bfabdd545ebb28e90eb4258)) - **$animate:** - use promises instead of callbacks for animations ([bf0f5502](https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9)) - coalesce concurrent class-based animations within a digest loop ([2f4437b3](https://github.com/angular/angular.js/commit/2f4437b3a149eafb899f25933bd6c713b167d10e)) - **$compile:** - bind isolate scope properties to controller ([5f3f25a1](https://github.com/angular/angular.js/commit/5f3f25a1a6f9d4f2a66e2700df3b9c5606f1c255), [#7635](https://github.com/angular/angular.js/issues/7635), [#7645](https://github.com/angular/angular.js/issues/7645)) - allow disabling scope info ([a1e5cd5f](https://github.com/angular/angular.js/commit/a1e5cd5fe3906ebee8c400247a1f793d3e2239fb)) - **$compile/ngBind:** allow disabling binding info ([3660fd09](https://github.com/angular/angular.js/commit/3660fd0912d3ccf6def8c9f02d8d4c0621c8d91f)) - **$http:** implement mechanism for coalescing calls to $apply in $http ([ea6fc6e6](https://github.com/angular/angular.js/commit/ea6fc6e69c2a2aa213c71ed4e917a0d54d064e4c), [#8736](https://github.com/angular/angular.js/issues/8736), [#7634](https://github.com/angular/angular.js/issues/7634), [#5297](https://github.com/angular/angular.js/issues/5297)) - **$rootScope:** implement $applyAsync to support combining calls to $apply into a single digest. ([e94d454b](https://github.com/angular/angular.js/commit/e94d454b840f6cc55a440741382b407836ad245b)) - **$templateRequest:** introduce the $templateRequest service ([a70e2833](https://github.com/angular/angular.js/commit/a70e2833ea276107b11aafea96ef4a6724ad4d83)) - **filter:** allow to define the timezone for formatting dates ([4739b1d9](https://github.com/angular/angular.js/commit/4739b1d9daebfd094b6181c5f2cb52ff71e31c61)) - **filterFilter:** pass index to function predicate ([46343c60](https://github.com/angular/angular.js/commit/46343c603db6192daf5303b92eb664749326c7e6), [#654](https://github.com/angular/angular.js/issues/654)) - **input:** allow to define the timezone for parsing dates ([cc6fc199](https://github.com/angular/angular.js/commit/cc6fc199f5abaacdf781aa03634337d776eb0fc9), [#8447](https://github.com/angular/angular.js/issues/8447)) - **minErr:** allow specifying ErrorConstructor in minErr constructor ([a6bd4bc8](https://github.com/angular/angular.js/commit/a6bd4bc866a18f860c7548fa1b3f6d4c2a953416)) - **ngModel:** provide validation API functions for sync and async validations ([2ae4f40b](https://github.com/angular/angular.js/commit/2ae4f40be1803d999ca2a8cc30ec17ff19ea6d86)) - **ngRoute:** alias string as redirectTo property in .otherwise() ([3b5d75c0](https://github.com/angular/angular.js/commit/3b5d75c021e21fa6ec4dc6c47b8eafa55680ea63), [#7794](https://github.com/angular/angular.js/issues/7794)) - **testability:** add $$testability service ([85880a64](https://github.com/angular/angular.js/commit/85880a64900fa22a61feb926bf52de0965332ca5)) ## Performance Improvements - **$compile:** - add debug classes in compile phase ([e0489abd](https://github.com/angular/angular.js/commit/e0489abd8d9e4971ae23cc38805a92d227d1f3a1)) - only iterate over elements with link functions ([fdf9989f](https://github.com/angular/angular.js/commit/fdf9989f7cf1ed81982a788b75a338ac33334571), [#8741](https://github.com/angular/angular.js/issues/8741)) - **nodeName_:** simplify the code and reduce the number of DOM calls ([5a1a0c96](https://github.com/angular/angular.js/commit/5a1a0c96220101b5e040f0755e5eb401e2c73f65)) - **select:** execute render after $digest cycle ([6f7018d5](https://github.com/angular/angular.js/commit/6f7018d52fa4f9f9c7fa8e3035317d1239efb20f), [#8825](https://github.com/angular/angular.js/issues/8825)) ## Breaking Changes - **$location**: due to [22948807](https://github.com/angular/angular.js/commit/22948807e324eb0b182b15b31045dc306a9f3231) #### since 1.2.0 and 1.3.0-beta.1 Angular now requires a `` tag when html5 mode of `$location` is enabled. Reasoning: Using html5 mode without a `` tag makes relative links for images, links, ... relative to the current url if the browser supports the history API. However, if the browser does not support the history API Angular falls back to using the `#`, and then all those relative links would be broken. The `` tag is also needed when a deep url is loaded from the server, e.g. `http://server/some/page/url`. In that case, Angular needs to decide which part of the url is the base of the application, and which part is path inside of the application. To summarize: Now all relative links are always relative to the `` tag. Exception (also a breaking change): Link tags whose `href` attribute starts with a `#` will only change the hash of the url, but nothing else (e.g. ``). This is to make it easy to scroll to anchors inside a document. Related to #6162 Closes #8492 #### since 1.2.17 and 1.3.0-beta.10 In html5 mode without a `` tag on older browser that don't support the history API relative paths were adding up. E.g. clicking on `` and then on `` would produce `$location.path()==='/page1/page2'`. The code that introduced this behavior was removed and Angular now also requires a `` tag to be present when using html5 mode. Closes #8172, #8233 - **ngInclude, ngMessage, ngView and directives that load templates**: due to [a70e2833](https://github.com/angular/angular.js/commit/a70e2833ea276107b11aafea96ef4a6724ad4d83) Angular will now throw a $compile minErr each a template fails to download for ngView, directives and ngMessage template requests. This changes the former behavior of silently ignoring failed HTTP requests--or when the template itself is empty. Please ensure that all directive, ngView and ngMessage code now properly addresses this scenario. NgInclude is uneffected from this change. - **$animate**: due to [23da6140](https://github.com/angular/angular.js/commit/23da614043fe5dcf0be132b86466eecb11c766a2) If any stagger code consisted of having BOTH transition staggers and delay staggers together then that will not work the same way. Angular will now instead choose the highest stagger delay value and set the timeout to wait for that before applying the active CSS class. - **$animate**: due to [bf0f5502](https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9) Both the API for the cancallation method and the done callback for $animate animations is different. Instead of using a callback function for each of the $animate animation methods, a promise is used instead. ```js //before $animate.enter(element, container, null, callbackFn); //after $animate.enter(element, container).then(callbackFn); ``` The animation can now be cancelled via `$animate.cancel(promise)`. ```js //before var cancelFn = $animate.enter(element, container); cancelFn(); //cancels the animation //after var promise = $animate.enter(element, container); $animate.cancel(promise); //cancels the animation ``` keep in mind that you will still need to run $scope.$apply inside of the `then` callback to trigger a digest. - **$animate**: due to [2f4437b3](https://github.com/angular/angular.js/commit/2f4437b3a149eafb899f25933bd6c713b167d10e) $animate.addClass, $animate.removeClass and $animate.setClass will no longer start the animation right after being called in the directive code. The animation will only commence once a digest has passed. This means that all animation-related testing code requires an extra digest to kick off the animation. ```js //before this fix $animate.addClass(element, 'super'); expect(element).toHaveClass('super'); //now $animate.addClass(element, 'super'); $rootScope.$digest(); expect(element).toHaveClass('super'); ``` $animate will also tally the amount of times classes are added and removed and only animate the left over classes once the digest kicks in. This means that for any directive code that adds and removes the same CSS class on the same element then this may result in no animation being triggered at all. ```js $animate.addClass(element, 'klass'); $animate.removeClass(element, 'klass'); $rootScope.$digest(); //nothing happens... ``` - **$compile/ngBind:** due to [3660fd09](https://github.com/angular/angular.js/commit/3660fd0912d3ccf6def8c9f02d8d4c0621c8d91f), The value of `$binding` data property on an element is always an array now and the expressions do not include the curly braces `{{ ... }}`. - **currencyFilter:** due to [c2aaddbe](https://github.com/angular/angular.js/commit/c2aaddbe4b21348aab8c13a78cdd6aaee846ae4e), previously the currency filter would convert null and undefined values into empty string, after this change these values will be passed through. Only cases when the currency filter is chained with another filter that doesn't expect null/undefined will be affected. This should be very rare. This change will not change the visual output of the filter because the interpolation will convert the null/undefined to an empty string. Closes #8605 - **numberFilter:** due to [2ae10f67](https://github.com/angular/angular.js/commit/2ae10f67fcde3e172f695956301ef796b68a50c2), previously the number filter would convert null and undefined values into empty string, after this change these values will be passed through. Only cases when the number filter is chained with another filter that doesn't expect null/undefined will be affected. This should be very rare. This change will not change the visual output of the filter because the interpolation will convert the null/undefined to an empty string. Closes #8605 Closes #8842 - **input:** - due to [77ce5b89](https://github.com/angular/angular.js/commit/77ce5b89f97aa83c3eb1fe2e19375ef00a822015), NgModel.viewValue will always be used when rendering validations for `minlength` and `maxlength`. Closes #7967 Closes #8811 - **input:** - due to [29f0b568](https://github.com/angular/angular.js/commit/29f0b568debab7810752969d363d337099e96cdc), According to the HTML5 spec `input[time]` should create dates based on the year 1970 (used to be based on the year 1900). Related to #8447. - **ngModel**: due to [db044c40](https://github.com/angular/angular.js/commit/db044c408a7f8082758b96ab739348810c36e15a) Any parser code from before that returned an `undefined` value (or nothing at all) will now cause a parser failure. When this occurs none of the validators present in `$validators` will run until the parser error is gone. The error will be stored on `ngModel.$error`. - **ngEventDirs:** due to [719c747c](https://github.com/angular/angular.js/commit/719c747cd892ee933e7e414a7dc97e657b88317d), The `blur` and `focus` event fire synchronously, also during DOM operations that remove elements. This lead to errors as the Angular model was not in a consistent state. See this [fiddle](http://jsfiddle.net/fq1dq5yb/) for a demo. This change executes the expression of those events using `scope.$evalAsync` if an `$apply` is in progress, otherwise keeps the old behavior. Fixes #4979 Fixes #5945 Closes #8803 Closes #6910 Closes #5402 # 1.2.23 superficial-malady (2014-08-22) ## Bug Fixes - **$location:** - rewrite relative URI correctly if `path==='/'` in legacy html5Mode ([c6e4defc](https://github.com/angular/angular.js/commit/c6e4defcb6ec1ff43e9590b8fe9601d9e9da445d), [#8684](https://github.com/angular/angular.js/issues/8684)) - don't call `indexOf()` of undefined `href` attribute ([74a7afcb](https://github.com/angular/angular.js/commit/74a7afcb31b2e2aef2d7a4c3e3cf29f320669b0e), [#7721](https://github.com/angular/angular.js/issues/7721), [#8681](https://github.com/angular/angular.js/issues/8681)) - **$sanitize:** sanitize javascript urls with comments ([4f387050](https://github.com/angular/angular.js/commit/4f3870500da6f6f0c1b1d20c70404996b1a39585), [#8274](https://github.com/angular/angular.js/issues/8274)) - **Angular:** make Date comparison in equals() NaN-aware ([98f60372](https://github.com/angular/angular.js/commit/98f603722d81046031ad4a10e0a49b692871c2b2), [#8650](https://github.com/angular/angular.js/issues/8650), [#8715](https://github.com/angular/angular.js/issues/8715)) - **copy:** clear array destinations correctly for non-array sources ([888b0f54](https://github.com/angular/angular.js/commit/888b0f5400c2357dcc91300d1a4e66e52a8d8801), [#8610](https://github.com/angular/angular.js/issues/8610), [#8702](https://github.com/angular/angular.js/issues/8702)) - **input:** - use lowercase method to account for undefined type ([456026ef](https://github.com/angular/angular.js/commit/456026eff12ad70fa27dd08ec6bddc63e0f3e604)) - by default, do not trim `input[type=password]` values ([ebece0bc](https://github.com/angular/angular.js/commit/ebece0bcb9d64e59beb1c9b3418bed25e50ceef4), [#8250](https://github.com/angular/angular.js/issues/8250), [#8230](https://github.com/angular/angular.js/issues/8230)) - **linky:** handle quotes around email addresses ([effc98fd](https://github.com/angular/angular.js/commit/effc98fdc91937ae0aca30bc53e34a3c29863cd6), [#8520](https://github.com/angular/angular.js/issues/8520)) - **minErr:** encode btstrpd error input to strip angle brackets ([aaf9c5e5](https://github.com/angular/angular.js/commit/aaf9c5e598996ab17bce9579c8bfe63628b6620e), [#8683](https://github.com/angular/angular.js/issues/8683)) - **ngHref:** remove attribute when empty value instead of ignoring ([ed56872b](https://github.com/angular/angular.js/commit/ed56872bb2c9c479f90a479f52e3d4ef9c80d0c7), [#2755](https://github.com/angular/angular.js/issues/2755)) ## Breaking Changes - **input:** due to [ebece0bc](https://github.com/angular/angular.js/commit/ebece0bcb9d64e59beb1c9b3418bed25e50ceef4), Previously, `input[type=password]` would trim values by default, and would require an explicit ng-trim="false" to disable the trimming behaviour. After this CL, `ng-trim` no longer affects `input[type=password]`, and will never trim the password value. Closes #8250 Closes #8230 # 1.3.0-beta.19 rafter-ascension (2014-08-22) ## Bug Fixes - **$compile:** - use the correct namespace for transcluded SVG elements ([ffbd276d](https://github.com/angular/angular.js/commit/ffbd276d6def6ff35bfdb30553346e985f4a0de6), [#8716](https://github.com/angular/angular.js/issues/8716)) - update the jQuery `.context` when an element is replaced by `replace:true` directive ([f02f7d9c](https://github.com/angular/angular.js/commit/f02f7d9c15deea9c5d83212301e2a5e18223bbe5), [#8253](https://github.com/angular/angular.js/issues/8253), [#7900](https://github.com/angular/angular.js/issues/7900)) - **$location:** - rewrite relative URI correctly if `path==='/'` in legacy html5Mode ([d18b2819](https://github.com/angular/angular.js/commit/d18b2819768e467897dee7bc223876ca23ea71b1), [#8684](https://github.com/angular/angular.js/issues/8684)) - don't call `indexOf()` of undefined `href` attribute ([5b77e30c](https://github.com/angular/angular.js/commit/5b77e30c1ac49be7b079b82527a5631f68bac904), [#7721](https://github.com/angular/angular.js/issues/7721), [#8681](https://github.com/angular/angular.js/issues/8681)) - **$parse:** remove unused variable declaration in generated getters ([6acea115](https://github.com/angular/angular.js/commit/6acea1152f72a4026583897c67bea2839bc9e89e)) - **$sanitize:** sanitize javascript urls with comments ([b7e82a33](https://github.com/angular/angular.js/commit/b7e82a33eee03fc683f982c6ee13d15d88b07f67), [#8274](https://github.com/angular/angular.js/issues/8274)) - **$watchGroup:** call listener once when the `watchExpressions` array is empty ([bf0e8373](https://github.com/angular/angular.js/commit/bf0e83732aa02c7aa08d0ccdf122116235fcfa11)) - **Angular:** make Date comparison in `equals()` `NaN`-aware ([693e846a](https://github.com/angular/angular.js/commit/693e846add5089d0e516604ae4a109e445fd3664), [#8650](https://github.com/angular/angular.js/issues/8650), [#8715](https://github.com/angular/angular.js/issues/8715)) - **Scope:** don't clear the phase when an exception is thrown from asyncQueue or watch ([bf1a57ad](https://github.com/angular/angular.js/commit/bf1a57ad4822bb152fdd4d2fb54c0689e466481b)) - **copy:** clear array destinations correctly for non-array sources ([a603e202](https://github.com/angular/angular.js/commit/a603e202cc7e048c2ab6f12dee1cc8f277cf6f4f), [#8610](https://github.com/angular/angular.js/issues/8610), [#8702](https://github.com/angular/angular.js/issues/8702)) - **forEach:** match behaviour of Array.prototype.forEach (ignore missing properties) ([36230194](https://github.com/angular/angular.js/commit/36230194be8aa417b0af33d618060829a75c4c5f), [#8510](https://github.com/angular/angular.js/issues/8510), [#8522](https://github.com/angular/angular.js/issues/8522), [#8525](https://github.com/angular/angular.js/issues/8525)) - **input:** - use lowercase method to account for undefined type ([066c0499](https://github.com/angular/angular.js/commit/066c049957a8af2fe449040eca2f1cb499655e32)) - by default, do not trim input[type=password] values ([a7fb357f](https://github.com/angular/angular.js/commit/a7fb357fa122e0a056ce1de838a2dfaf1ebc2953), [#8250](https://github.com/angular/angular.js/issues/8250), [#8230](https://github.com/angular/angular.js/issues/8230)) - **jQuery:** cooperate with other libraries monkey-patching jQuery.cleanData ([b9389b26](https://github.com/angular/angular.js/commit/b9389b26ba2cf6aa70372fa32a7b28c62d174bf5), [#8471](https://github.com/angular/angular.js/issues/8471)) - **jqLite:** - clone wrapNode in jqlite/wrap ([77d3e754](https://github.com/angular/angular.js/commit/77d3e7544642396d868aa49b85f0c027e8057bd7), [#3860](https://github.com/angular/angular.js/issues/3860), [#4194](https://github.com/angular/angular.js/issues/4194)) - revert the `ready()` optimization until jQuery does the same ([1bdca93d](https://github.com/angular/angular.js/commit/1bdca93d708ce9441b26d00e564210755395edf7)) - **linky:** handle quotes around email addresses ([a9d22712](https://github.com/angular/angular.js/commit/a9d227120dc2d433372da415a450e56b783b57a0), [#8520](https://github.com/angular/angular.js/issues/8520)) - **minErr:** encode btstrpd error input to strip angle brackets ([0872388a](https://github.com/angular/angular.js/commit/0872388a1b88b8637fdb0fb1ebbee269bead0508), [#8683](https://github.com/angular/angular.js/issues/8683)) - **ngRepeat:** - allow aliasAs identifiers which contain but do not match reserved words ([d713ad1b](https://github.com/angular/angular.js/commit/d713ad1b6607389649fbb8d12ac103565b02a1d4), [#8729](https://github.com/angular/angular.js/issues/8729)) - make allowed aliasAs expressions more strict ([09b29870](https://github.com/angular/angular.js/commit/09b298705f74255aff55bb7e4ba200c4200d712d), [#8438](https://github.com/angular/angular.js/issues/8438), [#8440](https://github.com/angular/angular.js/issues/8440)) ## Features - **$compile:** - use allOrNothing interpolation for ngAttr* ([09de7b5d](https://github.com/angular/angular.js/commit/09de7b5db466498becb295ecf5c1d0a698b1512c), [#8376](https://github.com/angular/angular.js/issues/8376), [#8399](https://github.com/angular/angular.js/issues/8399)) - **benchpress:** configure benchpress grunt task ([6bdaa4bc](https://github.com/angular/angular.js/commit/6bdaa4bc213805a58f51e9f5285dfe03bb06ddc3)) - **jqLite:** implement the `detach` method ([1a05daf5](https://github.com/angular/angular.js/commit/1a05daf5dc67813528afdb88086766dc22b6c0df), [#5461](https://github.com/angular/angular.js/issues/5461)) - **ngRoute:** add method for changing url params ([77a1acc7](https://github.com/angular/angular.js/commit/77a1acc7fcad7a8a7d0376b33d38a8977372cfe2)) ## Performance Improvements - **$compile:** - don't register $destroy callbacks on element-transcluded nodes ([b5f7970b](https://github.com/angular/angular.js/commit/b5f7970be5950580bde4de0002a578daf3ae3aac)) - refactor publicLinkFn to simplify the code and use 'for in' loop ([645625cf](https://github.com/angular/angular.js/commit/645625cf349a4be57691a7bf418b2386b4c1a53d)) - clone the nodeList during linking only if necessary ([3e0a2e1f](https://github.com/angular/angular.js/commit/3e0a2e1f3367a5b4ae7d8de6cff559f522aacfba)) - delay object initialization in nodeLinkFn ([31ed0af7](https://github.com/angular/angular.js/commit/31ed0af74b0081906415dcefe5610e1217cc0c48)) - optimize nodeLinkFn ([35134a0e](https://github.com/angular/angular.js/commit/35134a0e237d193cd7d3995dacfdc6bf3e92635e)) - optimize publicLinkFn ([274e9c4d](https://github.com/angular/angular.js/commit/274e9c4ddfd64138d39fcf84047aabc3ccde2f0b)) - **$interpolate:** do not keep empty separators ([94b5c9f0](https://github.com/angular/angular.js/commit/94b5c9f00edff7fa631d09316ceb9c7fd4c6426a)) - **$parse:** - don't bind filters to a context ([8863b9d0](https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f)) - optimize filter implementation ([ece6ef47](https://github.com/angular/angular.js/commit/ece6ef479c741f17fc217d743cad64c516dbed27)) - speed up fn invocation for no args case ([a17578ad](https://github.com/angular/angular.js/commit/a17578ad3db5d1375aec1d601055ab718eeafd10)) - speed up fn invocation by optimizing arg collection ([fecfc5b0](https://github.com/angular/angular.js/commit/fecfc5b09feb7e4079364013b0beb6bf204ade2a)) - use no-proto maps as caches and avoid hasOwnProperty checks ([d302ea0c](https://github.com/angular/angular.js/commit/d302ea0cfade2787d7cc500398b7dcd3e4eff945)) - trim expression only if string ([a1341223](https://github.com/angular/angular.js/commit/a1341223c084c8188671bb8d6ea1608490b66f9f)) - **$rootScope:** do not use `Function::call` when not needed ([7eae29e5](https://github.com/angular/angular.js/commit/7eae29e5ab478ccb7e02fee8311f8b99ea1d165d)) - **Scope:** - optimize `$watchCollection` when used for watching objects ([e822e906](https://github.com/angular/angular.js/commit/e822e9061c2a605649d91abbd641f757e2829275)) - don't use forEach in ([301463a2](https://github.com/angular/angular.js/commit/301463a2e249011d7cb696c6cf34254f8317a706)) - watchCollection optimization ([7d96ab0d](https://github.com/angular/angular.js/commit/7d96ab0d132d923ec3e3a212aaf9d79f1d4a02de)) - exit $broadcast early if nobody is listening for the given event ([a09fa356](https://github.com/angular/angular.js/commit/a09fa356416c033a52666f3becf00524ecff3a03)) - use remove the need for the extra watch in $watchGroup ([3f0e642e](https://github.com/angular/angular.js/commit/3f0e642eefcbbb315839c4456ba6ac029a7b8a20), [#8396](https://github.com/angular/angular.js/issues/8396)) - **benchpress:** add benchpress node module and port over large table test ([1229334f](https://github.com/angular/angular.js/commit/1229334fbd8c778e95785d6a5e5589099ce655f7)) - **isObject:** use strict comparison ([d208ba25](https://github.com/angular/angular.js/commit/d208ba254442649d35f96c76bcd9e47326ec59f3)) - **jqLite:** - simplify jqLiteDealoc ([f8f7a1df](https://github.com/angular/angular.js/commit/f8f7a1df34560222cb5d2e18d4be996f5553815a)) - optimize event handler ([d05f27e2](https://github.com/angular/angular.js/commit/d05f27e274c41c33eebf4fe8035715d3f6596069)) - only take `str.split()` path when needed ([187b1b8e](https://github.com/angular/angular.js/commit/187b1b8ef45babd86afa853dc9321cd23160096e), [#8648](https://github.com/angular/angular.js/issues/8648)) - optimize `off()` ([abb17cce](https://github.com/angular/angular.js/commit/abb17cce8b459e4646d1c2a2428b691c3d95fb4c)) - refactor jqLiteExpandoStore to minimize access to expensive element.ng339 expando property ([1e8698b3](https://github.com/angular/angular.js/commit/1e8698b33e61b1a196f05f42856a2da4590a10e1)) - microoptimization in chaining fn ([fafbd494](https://github.com/angular/angular.js/commit/fafbd494907a8c068d79415b7ba8f42f283be521)) - don't use String#split in on() unless we need it ([bda673f8](https://github.com/angular/angular.js/commit/bda673f8e785f299407c8c45887f37448a0f0192)) - don't check isString many times in constructor ([443b521e](https://github.com/angular/angular.js/commit/443b521e22f9ec7009b913a2fe78caee0a515e87)) - optimize jqLiteAcceptsData method ([b493c62f](https://github.com/angular/angular.js/commit/b493c62f6b3e4288f5dee7c8b5952e088c2e3329)) - optimize `append()` and `after()` ([8d933bf9](https://github.com/angular/angular.js/commit/8d933bf99520fe3936e33d3ee28fd37e574b99de)) - don't register DOM listener for $destroy event ([6251751a](https://github.com/angular/angular.js/commit/6251751ad7bc2f3621db538edb5a9d7313a4ce6d)) - optimize event listener registration ([566f1015](https://github.com/angular/angular.js/commit/566f1015d27118d259e0886910d6b73b3cb0eb10)) - improve createEventHandler method by switching from forEach to for loop ([e9cd6dc0](https://github.com/angular/angular.js/commit/e9cd6dc055cb7bd80ae9232d8985b2bc3999135e)) - don't use `forEach` in `off()` ([960a8410](https://github.com/angular/angular.js/commit/960a8410515b2d7d461d7c95e8a2ca3d75129087)) - don't recreate the Node.contains polyfill ([d1536e7c](https://github.com/angular/angular.js/commit/d1536e7c8bf60549096138d08953a43190c7b1a6)) - speed up shallowCopy and special case Attributes cloning ([54fa16e4](https://github.com/angular/angular.js/commit/54fa16e45d8769ce6708a28388326db0eea53c7e)) - **ngBind:** bypass jquery/jqlite when setting text ([0a738ce1](https://github.com/angular/angular.js/commit/0a738ce1760f38efe45e79aa133442be09b56803)) - **ngRepeat:** - simplify code and remove duplicate array.length access ([08eb0558](https://github.com/angular/angular.js/commit/08eb05583bf39c63fef43b4faf29c61360699c81)) - optimize marking of nodes that are being removed via an animation ([36e35b2c](https://github.com/angular/angular.js/commit/36e35b2cb17c5ff7c43746d9ac0a259f77ff494e)) - use no-proto objects for blockMaps ([13d113c5](https://github.com/angular/angular.js/commit/13d113c522f124b91a1fd8606c22bbd399abf121)) - move work to compile fn ([bdd853cb](https://github.com/angular/angular.js/commit/bdd853cb83839eef9901af164293611eaa23ee2c)) - move updateScope fn to factory and reuse it for all repeaters ([e58d65a5](https://github.com/angular/angular.js/commit/e58d65a520cfbc630cbfbc248479416777ca16b2)) - clone boundary comment nodes ([fbd48845](https://github.com/angular/angular.js/commit/fbd48845e0e88e9935f82fe4c9f686ad78b5d924)) ## Breaking Changes - **$compile:** - due to [09de7b5d](https://github.com/angular/angular.js/commit/09de7b5db466498becb295ecf5c1d0a698b1512c), Now, `ng-attr-*` will never add the attribute to the DOM if any of the interpolated expressions evaluate to `undefined`. To work around this, initialize values which are intended to be the empty string with the empty string: For example, given the following markup: ```html
``` If `$scope.value` is `4`, and `$scope.units` is `undefined`, the resulting markup is unchanged: ```html
``` However, if $scope.units is `""`, then the resulting markup is updated: ```html
``` Closes #8376 Closes #8399 - due to [0d608d04](https://github.com/angular/angular.js/commit/0d608d041f37a659d8d8ba7a9b688e132587035d), element-transcluded directives now have an extra comment automatically appended to their cloned DOM This comment is usually needed to keep track the end boundary in the event child directives modify the root node(s). If not used for this purpose it can be safely ignored. - due to [75c4cbf8](https://github.com/angular/angular.js/commit/75c4cbf81fcd6d49656d3cb044e59e5fd24e0479), `directive.type` was renamed to `directive.templateNamespace` This change is breaking only within 1.3.0-beta releases: `directive.type` was renamed to `directive.templateNamespace` The property name `type` was too general. - **$parse:** due to [8863b9d0](https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f), `this` in filters is now undefined and no longer the scope It's a bad practice for filters to have hidden dependencies, so pulling stuff from scope directly is not a good idea. Scope being the filter context was never documented as public API, so we don't expect that any significant code depends on this behavior. If an existing filter has a dependency on the scope instance, the scope reference can be passed into the filter as a filter argument (this is highly discouraged for new code): Before: `{{ user.name | customFilter }}` After: `{{ user.name | customFilter:this }}` - **Scope:** due to [0554c1aa](https://github.com/angular/angular.js/commit/0554c1aae49a81691154a77e70b602b0f24dca81), `deregisterNotifier` callback for `$watch` is no longer available This API was available only in the last few 1.3 beta versions and is not very useful for applications, so we don't expect that anyone will be affected by this change. - **input:** due to [a7fb357f](https://github.com/angular/angular.js/commit/a7fb357fa122e0a056ce1de838a2dfaf1ebc2953), by default, do not trim `input[type=password]` values. Previously, `input[type=password]` would trim values by default, and would require an explicit `ng-trim="false"` to disable the trimming behaviour. After this change, `ng-trim` no longer affects `input[type=password]`, and will never trim the password value. Closes #8250 Closes #8230 # 1.3.0-beta.18 spontaneous-combustion (2014-08-12) ## Bug Fixes - **$compile:** make '='-bindings NaN-aware ([5038bf79](https://github.com/angular/angular.js/commit/5038bf79c6c8251d7449d887b44a4321e619c534), [#8553](https://github.com/angular/angular.js/issues/8553), [#8554](https://github.com/angular/angular.js/issues/8554)) - **$location:** add semicolon to whitelist of delimiters to unencode ([36258033](https://github.com/angular/angular.js/commit/3625803349de04f175f87a22cbb608738003811a), [#5019](https://github.com/angular/angular.js/issues/5019)) - **$parse:** - one-time binding for literal expressions works as expected ([c024f282](https://github.com/angular/angular.js/commit/c024f28217cf8eedd695dd4b933ecf2ba4243c15), [#8209](https://github.com/angular/angular.js/issues/8209)) - correctly assign expressions who's path is undefined and that use brackets notation ([c03ad249](https://github.com/angular/angular.js/commit/c03ad249033e701f3ad7aa358102e1cb87f5025c), [#8039](https://github.com/angular/angular.js/issues/8039)) - **Scope:** add deregisterNotifier to oneTimeLiteralWatch signature ([a001a417](https://github.com/angular/angular.js/commit/a001a417d5c12bad0fa09c88e045622b95239e2f)) - **jqLite:** - allow `triggerHandler()` to accept custom event ([01d81cda](https://github.com/angular/angular.js/commit/01d81cdab3dbbcb8b4204769eb5272096eb0837f), [#8469](https://github.com/angular/angular.js/issues/8469)) - fix regression where mutating the dom tree on a event breaks jqLite.remove ([a00c9bca](https://github.com/angular/angular.js/commit/a00c9bca401abe5b5b0a217be82333056422c811), [#8359](https://github.com/angular/angular.js/issues/8359)) - **ngSanitize:** ensure `html` is a string in htmlParser() ([34781f18](https://github.com/angular/angular.js/commit/34781f18cb75ded9ae29f4b78f5bacd079f76709), [#8417](https://github.com/angular/angular.js/issues/8417), [#8416](https://github.com/angular/angular.js/issues/8416)) - **select:** - ensure that at least one option has the `selected` attribute set ([25a476ea](https://github.com/angular/angular.js/commit/25a476ea096b200fb4f422aaa9cd7215e2596ad3), [#8366](https://github.com/angular/angular.js/issues/8366), [#8429](https://github.com/angular/angular.js/issues/8429)) - do not update selected property of an option element on digest with no change event ([cdc7db3f](https://github.com/angular/angular.js/commit/cdc7db3f35368a9175ed96c63f4bf56593fe1876), [#8221](https://github.com/angular/angular.js/issues/8221), [#7715](https://github.com/angular/angular.js/issues/7715)) ## Features - **$parse:** allow for assignments in ternary operator branches ([2d678f1d](https://github.com/angular/angular.js/commit/2d678f1d0a3714fdd49e582b92787312af129947), [#8512](https://github.com/angular/angular.js/issues/8512), [#8484](https://github.com/angular/angular.js/issues/8484)) - **form:** Add new $submitted state to forms ([108a69be](https://github.com/angular/angular.js/commit/108a69be17df5884d026c57b2be3235c576250fe), [#8056](https://github.com/angular/angular.js/issues/8056)) - **http:** allow caching for JSONP requests ([3607c982](https://github.com/angular/angular.js/commit/3607c9822f57b4d01b3f09a6ae4efc7168bec6c5), [#1947](https://github.com/angular/angular.js/issues/1947), [#8356](https://github.com/angular/angular.js/issues/8356)) - **jQuery:** upgrade to jQuery to 2.1.1 ([9e7cb3c3](https://github.com/angular/angular.js/commit/9e7cb3c37543008e6236bb5a2c4536df2e1e43a9)) - **ngMock:** allow override of when/expect definitions ([477626d8](https://github.com/angular/angular.js/commit/477626d846b4de65d1d5c7071e6a94361395ff42), [#5766](https://github.com/angular/angular.js/issues/5766), [#8352](https://github.com/angular/angular.js/issues/8352)) ## Performance Improvements - **$q:** move Deferred and Promise methods to prototypes ([23bc92b1](https://github.com/angular/angular.js/commit/23bc92b17df882a907fb326320f0622717fefe7b), [#8300](https://github.com/angular/angular.js/issues/8300)) - **input:** prevent additional $digest when input is already touched ([dd2a803f](https://github.com/angular/angular.js/commit/dd2a803f4f03ab629a51623c026d3e3f9dc9e91f), [#8450](https://github.com/angular/angular.js/issues/8450)) ## Breaking Changes - **jQuery:** due to [9e7cb3c3](https://github.com/angular/angular.js/commit/9e7cb3c37543008e6236bb5a2c4536df2e1e43a9), Angular no longer supports jQuery versions below 2.1.1. - **$q:** due to [23bc92b1](https://github.com/angular/angular.js/commit/23bc92b17df882a907fb326320f0622717fefe7b), Promises methods are no longer enumerated when using for-loops with `hasOwnProperty` check. E.g. `angular.extends` # 1.2.22 finicky-pleasure (2014-08-12) ## Bug Fixes - **$compile:** make '='-bindings NaN-aware ([0b0acb03](https://github.com/angular/angular.js/commit/0b0acb03424a273965fa6e6175d584f53a90252c), [#8553](https://github.com/angular/angular.js/issues/8553), [#8554](https://github.com/angular/angular.js/issues/8554)) - **$parse:** correctly assign expressions who's path is undefined and that use brackets notation ([60366c8d](https://github.com/angular/angular.js/commit/60366c8d0bb5ffdd1bd8a8971820eb4868f3efd5), [#8039](https://github.com/angular/angular.js/issues/8039)) - **jqLite:** allow `triggerHandler()` to accept custom event ([d262378b](https://github.com/angular/angular.js/commit/d262378b7c047dcd925cf4b55b80c0697b292232), [#8469](https://github.com/angular/angular.js/issues/8469), [#8505](https://github.com/angular/angular.js/issues/8505)) - **ngSanitize:** ensure `html` is a string in htmlParser() ([9ee07551](https://github.com/angular/angular.js/commit/9ee075518f1ccec0f34aa49bd007aa2ed9a3b12e), [#8417](https://github.com/angular/angular.js/issues/8417), [#8416](https://github.com/angular/angular.js/issues/8416)) - **select:** - ensure that at least one option has the `selected` attribute set ([79538afd](https://github.com/angular/angular.js/commit/79538afd7bd730d49be8eb988a3a54848d8ddaec), [#8366](https://github.com/angular/angular.js/issues/8366), [#8429](https://github.com/angular/angular.js/issues/8429)) - do not update selected property of an option element on digest with no change event ([c2860944](https://github.com/angular/angular.js/commit/c2860944c61a0b910f703fe8a9717188ed387893), [#8221](https://github.com/angular/angular.js/issues/8221), [#7715](https://github.com/angular/angular.js/issues/7715)) ## Features - **$parse:** allow for assignments in ternary operator branches ([93b0c2d8](https://github.com/angular/angular.js/commit/93b0c2d8925e354159cc421e5be1bca9582f7b70), [#8512](https://github.com/angular/angular.js/issues/8512), [#8484](https://github.com/angular/angular.js/issues/8484)) - **http:** allow caching for JSONP requests ([eab5731a](https://github.com/angular/angular.js/commit/eab5731afc788c59f3f2988db372299268df8614), [#1947](https://github.com/angular/angular.js/issues/1947), [#8356](https://github.com/angular/angular.js/issues/8356)) # 1.3.0-beta.17 turing-autocompletion (2014-07-25) ## Bug Fixes - **angular.copy:** clone regexp flags correctly ([86340a59](https://github.com/angular/angular.js/commit/86340a59bf9eb7bdfc4f99000cecf628cd10d9c8), [#5781](https://github.com/angular/angular.js/issues/5781), [#8337](https://github.com/angular/angular.js/issues/8337)) - **docs:** change plnkr form to open in same window ([925b2080](https://github.com/angular/angular.js/commit/925b2080a0341d9348feeb4f492957a2e2c80082)) - **jqLite:** triggerHandler support unbind self ([8a27abae](https://github.com/angular/angular.js/commit/8a27abae896de3c4d94c407e8bb381e099d2d7f7), [#5984](https://github.com/angular/angular.js/issues/5984)) - **ngHref:** remove attribute when empty value instead of ignoring ([469ea338](https://github.com/angular/angular.js/commit/469ea3384ad48ca4765af807c0f41201edb527f9), [#2755](https://github.com/angular/angular.js/issues/2755)) ## Features - **$compile:** change directive's restrict setting to default to EA (element/attribute) ([11f5aeee](https://github.com/angular/angular.js/commit/11f5aeeee952a395edaf54e3277674f211a82fc7), [#8321](https://github.com/angular/angular.js/issues/8321)) - **$q:** add streamlined ES6-style interface for using $q ([f3a763fd](https://github.com/angular/angular.js/commit/f3a763fd2edd8a37b80c79a5aaa1444460cd2df7), [#8311](https://github.com/angular/angular.js/issues/8311), [#6427](https://github.com/angular/angular.js/issues/6427)) - **ngRepeat:** provide support for aliasing filtered repeater results as a scope member ([e0adb9c4](https://github.com/angular/angular.js/commit/e0adb9c452e172295209f785b62472688225fffb), [#5919](https://github.com/angular/angular.js/issues/5919), [#8046](https://github.com/angular/angular.js/issues/8046), [#8282](https://github.com/angular/angular.js/issues/8282)) ## Performance Improvements - **$parse:** don't use reflective calls in generated functions ([c54228fb](https://github.com/angular/angular.js/commit/c54228fbe9d42d8a3a159bf84dd1d2e99b259ece)) ## Breaking Changes - **$compile:** due to [11f5aeee](https://github.com/angular/angular.js/commit/11f5aeeee952a395edaf54e3277674f211a82fc7), directives now match elements by default unless specific restriction rules are set via `restrict` property. This means that if a directive 'myFoo' previously didn't specify matching restrictrion, it will now match both the attribute and element form. Before: `
` <---- my-foo attribute matched the directive `` <---- no match After: `
` <---- my-foo attribute matched the directive `` <---- my-foo element matched the directive It is not expected that this will be a problem in practice because of widespread use of prefixes that make `` like elements unlikely. Closes #8321 # 1.2.21 wizard-props (2014-07-25) ## Bug Fixes - **$http:** fix double-quoted date issue when encoding params ([2f960f15](https://github.com/angular/angular.js/commit/2f960f1530ed936c57df612a352a0d996368f6a1), [#8150](https://github.com/angular/angular.js/issues/8150), [#6128](https://github.com/angular/angular.js/issues/6128), [#8154](https://github.com/angular/angular.js/issues/8154)) - **$location:** handle plus character in query strings ([60af504c](https://github.com/angular/angular.js/commit/60af504c18dbdde9dfe90e9a2badef6d9e798512), [#3042](https://github.com/angular/angular.js/issues/3042)) - **$rootScope:** $watchCollection should handle NaN in objects ([bf13d268](https://github.com/angular/angular.js/commit/bf13d2683d5880b18db00087e80ee0fd5e1f429a), [#7930](https://github.com/angular/angular.js/issues/7930)) - **angular.copy:** clone regexp flags correctly ([e25ed0d4](https://github.com/angular/angular.js/commit/e25ed0d48d9a1c577e78b1c96098841572c764ea), [#5781](https://github.com/angular/angular.js/issues/5781), [#8337](https://github.com/angular/angular.js/issues/8337)) - **csp:** fix autodetection of CSP + better docs ([0e5d3190](https://github.com/angular/angular.js/commit/0e5d31908e122f013427164f7bbeea914a9a5961), [#8162](https://github.com/angular/angular.js/issues/8162), [#8191](https://github.com/angular/angular.js/issues/8191)) - **docs:** change plnkr form to open in same window ([5d11e020](https://github.com/angular/angular.js/commit/5d11e02008731a78f302841863a83fe7ed3c37b9)) - **jqLite:** triggerHandler support unbind self ([209e6000](https://github.com/angular/angular.js/commit/209e60007042f7e8b34c54ec6bf7d6f703c0ba2a), [#5984](https://github.com/angular/angular.js/issues/5984)) - **ngHref:** remove attribute when empty value instead of ignoring ([948c86c6](https://github.com/angular/angular.js/commit/948c86c6025fca8e07921869d21cfac1c6333b05), [#2755](https://github.com/angular/angular.js/issues/2755)) - **ngRoute:** remove unnecessary call to decodeURIComponent ([1b779028](https://github.com/angular/angular.js/commit/1b779028fdd339febaa1fff5f3bd4cfcda46cc09), [#6326](https://github.com/angular/angular.js/issues/6326), [#6327](https://github.com/angular/angular.js/issues/6327)) - **ngSanitize:** - follow HTML parser rules for start tags / allow < in text content ([d175bb01](https://github.com/angular/angular.js/commit/d175bb01314efdcbad5c3cb31b02e298e26c6e19), [#8212](https://github.com/angular/angular.js/issues/8212), [#8193](https://github.com/angular/angular.js/issues/8193)) - **orderBy:** correctly order by date values ([f1b28847](https://github.com/angular/angular.js/commit/f1b28847c8123483e03ac2410de86fd33a80b5f4), [#6675](https://github.com/angular/angular.js/issues/6675), [#6746](https://github.com/angular/angular.js/issues/6746)) - **select:** force visual update in IE ([c0afbfac](https://github.com/angular/angular.js/commit/c0afbfaca57893403d8d4b0990879ad5b9ffc3e5), [#7692](https://github.com/angular/angular.js/issues/7692), [#8158](https://github.com/angular/angular.js/issues/8158)) ## Performance Improvements - **$compile:** only create jqLite object when necessary ([71eb1901](https://github.com/angular/angular.js/commit/71eb1901f6b9a3a6d4b772aa95ce0dc78ff847bc)) - **$parse:** don't use reflective calls in generated functions ([cbdf0c2a](https://github.com/angular/angular.js/commit/cbdf0c2afb9836ae4cca6d70cf555ff28f55a1d1)) - **forEach:** use native for loop instead of forEach for Arrays ([492b0cdf](https://github.com/angular/angular.js/commit/492b0cdf28d02f1d508455245b7d8e1d641d9f40)) - **jqLite:** expose the low-level jqLite.data/removeData calls ([3c46c943](https://github.com/angular/angular.js/commit/3c46c94342aa35131f3ba0f8f4a6b39338b87d56)) - **ngBindHtml:** move addClass to the compile phase ([8eede099](https://github.com/angular/angular.js/commit/8eede099cd8aa6d524d1de385d08432072fd294e), [#8261](https://github.com/angular/angular.js/issues/8261)) # 1.3.0-beta.16 pizza-transubstantiation (2014-07-18) ## Bug Fixes - **$cookie:** use `decodeURIComponent` instead of unescape for cookie reading ([1c9ab40d](https://github.com/angular/angular.js/commit/1c9ab40d286ffdb1b41d30ca8d861b53175bfc24), [#8125](https://github.com/angular/angular.js/issues/8125)) - **$http:** fix double-quoted date issue when encoding params ([9dce42b3](https://github.com/angular/angular.js/commit/9dce42b3c26eb02621723172a68725980369b849), [#8150](https://github.com/angular/angular.js/issues/8150), [#6128](https://github.com/angular/angular.js/issues/6128), [#8154](https://github.com/angular/angular.js/issues/8154)) - **$location:** handle plus character in query strings ([3f4ee151](https://github.com/angular/angular.js/commit/3f4ee1513901f55d6007e3fc3948458adf4ac656), [#3042](https://github.com/angular/angular.js/issues/3042)) - **$rootScope:** - `$watchCollection` should handle `NaN` in objects ([db9f2570](https://github.com/angular/angular.js/commit/db9f2570c18d77d0e51d5a7afa139d25d0bdc470), [#7930](https://github.com/angular/angular.js/issues/7930)) - remove support for a watch action to be a string ([02c0ed27](https://github.com/angular/angular.js/commit/02c0ed27bc375d5352fefdd7e34aad9758621283), [#8190](https://github.com/angular/angular.js/issues/8190)) - **csp:** fix autodetection of CSP + better docs ([0113f225](https://github.com/angular/angular.js/commit/0113f2257415422729d5c2a9bdba76c1d0a17a13), [#8162](https://github.com/angular/angular.js/issues/8162), [#8191](https://github.com/angular/angular.js/issues/8191)) - **ngList:** use custom separators for re-joining list items ([c6c9d26e](https://github.com/angular/angular.js/commit/c6c9d26e3487ce24ece390c26994123964f805b0), [#4008](https://github.com/angular/angular.js/issues/4008), [#2561](https://github.com/angular/angular.js/issues/2561), [#4344](https://github.com/angular/angular.js/issues/4344)) - **ngRoute:** remove unnecessary call to `decodeURIComponent` ([528f56a6](https://github.com/angular/angular.js/commit/528f56a690295650f54eeb2238609446635c5db0), [#6326](https://github.com/angular/angular.js/issues/6326), [#6327](https://github.com/angular/angular.js/issues/6327)) - **ngSanitize:** follow HTML parser rules for start tags / allow < in text content ([f6681d41](https://github.com/angular/angular.js/commit/f6681d41a493efa6566f8a8a0b6ec39547e572ef), [#8212](https://github.com/angular/angular.js/issues/8212), [#8193](https://github.com/angular/angular.js/issues/8193)) - **ngSwitch:** - interoperate with multi-element transclude directives ([c20d438a](https://github.com/angular/angular.js/commit/c20d438ac9b9757331d096969a73c782c38e098a), [#8235](https://github.com/angular/angular.js/issues/8235), [#8244](https://github.com/angular/angular.js/issues/8244)) - use the correct transclusion scope ([4f32e3ee](https://github.com/angular/angular.js/commit/4f32e3eef152bcaab7f7ab151fc824e71a591473), [#8235](https://github.com/angular/angular.js/issues/8235)) - **orderBy:** correctly order by date values ([92bceb5c](https://github.com/angular/angular.js/commit/92bceb5c5b6e4a5a8fee01e1e0dfcf4674858cf2), [#6675](https://github.com/angular/angular.js/issues/6675), [#6746](https://github.com/angular/angular.js/issues/6746)) - **select:** force visual update in IE ([d7f73022](https://github.com/angular/angular.js/commit/d7f730228d58d3a409846e64ba5d0120356691cc), [#7692](https://github.com/angular/angular.js/issues/7692), [#8158](https://github.com/angular/angular.js/issues/8158)) ## Features - **$compile:** explicitly request multi-element directive behaviour ([e8066c4b](https://github.com/angular/angular.js/commit/e8066c4b4ce11496b0d8f39e41b4d753048bca2d), [#5372](https://github.com/angular/angular.js/issues/5372), [#6574](https://github.com/angular/angular.js/issues/6574), [#5370](https://github.com/angular/angular.js/issues/5370), [#8044](https://github.com/angular/angular.js/issues/8044), [#7336](https://github.com/angular/angular.js/issues/7336)) - **ngList:** use ngTrim to manage whitespace handling when splitting ([8d18d20e](https://github.com/angular/angular.js/commit/8d18d20e316ed9d420f09f46f90027aef2940930)) - **ngTransclude:** allow ngTransclude to be used as an element ([3dafcba9](https://github.com/angular/angular.js/commit/3dafcba9c1738b85f3adceaac90b747a1b595ea8), [#8141](https://github.com/angular/angular.js/issues/8141)) ## Performance Improvements - **$compile:** only create jqLite object when necessary ([a160f76f](https://github.com/angular/angular.js/commit/a160f76ffa9544cd2ed99f24ba65b5994108f9f5)) - **bindOnce** more performant interpolation and lazy one-time binding ([86d55c1d](https://github.com/angular/angular.js/commit/86d55c1ded21a5be6091344493d70c6dc4194e43)) - **jqLite:** expose the low-level jqLite.data/removeData calls ([e4ba8943](https://github.com/angular/angular.js/commit/e4ba89436aa0b96f126ce2c23d0c7f7c785573fe)) - **ngBindHtml:** move addClass to the compile phase ([903e7352](https://github.com/angular/angular.js/commit/903e7352c9943e4d3757dd1cff58178d4c5375d6), [#8261](https://github.com/angular/angular.js/issues/8261)) ## Breaking Changes - **$compile:** due to [e8066c4b](https://github.com/angular/angular.js/commit/e8066c4b4ce11496b0d8f39e41b4d753048bca2d), Directives which previously depended on the implicit grouping between directive-start and directive-end attributes must be refactored in order to see this same behaviour. Before: ```html
{{start}}

Grouped content

{{end}}
``` ```javascript .directive('fancyDirective', function() { return { link: angular.noop }; }) ``` After: ```html
{{start}}

Grouped content

{{end}}
``` ```javascript .directive('fancyDirective', function() { return { multiElement: true, // Explicitly mark as a multi-element directive. link: angular.noop }; }) ``` Closes #5372 Closes #6574 Closes #5370 Closes #8044 Closes #7336 - **$rootScope:** due to [02c0ed27](https://github.com/angular/angular.js/commit/02c0ed27bc375d5352fefdd7e34aad9758621283), Previously, it was possible for an action passed to $watch to be a string, interpreted as an angular expresison. This is no longer supported. The action now has to be a function. Passing an action to $watch is still optional. Before: ```javascript $scope.$watch('state', ' name="" '); ``` After: ```javascript $scope.$watch('state', function () { $scope.name = ""; }); ``` Closes #8190 - **bootstrap:** due to [666a3835](https://github.com/angular/angular.js/commit/666a3835d231b3f77f907276be18b3c0086e5d12), If using any of the mechanisms specified above, then migrate by specifying the attribute `ng-app` to the root element. E.g. ```html
...
``` Closes #8147 - **ngList:** due to [c6c9d26e](https://github.com/angular/angular.js/commit/c6c9d26e3487ce24ece390c26994123964f805b0), The `ngList` directive no longer supports splitting the view value via a regular expression. We need to be able to re-join list items back together and doing this when you can split with regular expressions can lead to inconsistent behaviour and would be much more complex to support. If your application relies upon ngList splitting with a regular expression then you should either try to convert the separator to a simple string or you can implement your own version of this directive for you application. Closes #4008 Closes #2561 Closes #4344 - **ngSwitch:** due to [4f32e3ee](https://github.com/angular/angular.js/commit/4f32e3eef152bcaab7f7ab151fc824e71a591473), ** Directive Priority Changed ** - this commit changes the priority of `ngSwitchWhen` and `ngSwitchDefault` from `800` to `1200`. This makes their priority higher than `ngRepeat`, which allows items to be repeated on the switch case element reliably. In general your directives should have a lower priority than these directives if you want them to exist inside the case elements. If you relied on the priority of these directives then you should check that your code still operates correctly. Closes #8235 # 1.3.0-beta.15 unbelievable-advancement (2014-07-11) ## Bug Fixes - **$animate:** - ensure that parallel class-based animations are all eventually closed ([f07af61f](https://github.com/angular/angular.js/commit/f07af61f050fcdcece15c13ee8c6a6d32f86d3a1), [#7766](https://github.com/angular/angular.js/issues/7766)) - remove the ng-animate className after canceling animation ([e18db78d](https://github.com/angular/angular.js/commit/e18db78d7793b1e94d9b19ac15b89d39f21a5729), [#7784](https://github.com/angular/angular.js/issues/7784), [#7801](https://github.com/angular/angular.js/issues/7801), [#7894](https://github.com/angular/angular.js/issues/7894)) - **$http:** - don't remove content-type header if data is set by request transform ([c7c363cf](https://github.com/angular/angular.js/commit/c7c363cf8d4533f94c5534c83dd1c7135633ddd8), [#7910](https://github.com/angular/angular.js/issues/7910)) - add ability to remove default headers ([172a4093](https://github.com/angular/angular.js/commit/172a40931be5fe47e7732e5ba173895a1d59c5cd), [#5784](https://github.com/angular/angular.js/issues/5784)) - **$location:** remove query args when passed in object ([2c7d0857](https://github.com/angular/angular.js/commit/2c7d0857ccbdb3a0967acc20e4346a7e1a6be792), [#6565](https://github.com/angular/angular.js/issues/6565)) - **input:** - escape forward slash in email regexp ([a88c215f](https://github.com/angular/angular.js/commit/a88c215f17829c1cfdec36bc1ef40bae10c41dff), [#8096](https://github.com/angular/angular.js/issues/8096)) - modify email validation regexp to match rfc1035 ([af6f943a](https://github.com/angular/angular.js/commit/af6f943a22f26cf2968f0ae3a1fab2fd09b52a2b), [#6026](https://github.com/angular/angular.js/issues/6026)) - **jqLite:** - correctly dealoc svg elements in IE ([012ab1f8](https://github.com/angular/angular.js/commit/012ab1f8745c8985d3f132c2dfa8fd84e7dc7041)) - remove exposed dealoc method ([9c5b407f](https://github.com/angular/angular.js/commit/9c5b407fd1e296dd525c129743f2b2b47da4dc0d)) - **ngModel:** test & update correct model when running $validate ([f3cb2741](https://github.com/angular/angular.js/commit/f3cb2741161353f387d02725637ce4ba062a9bc0), [#7836](https://github.com/angular/angular.js/issues/7836), [#7837](https://github.com/angular/angular.js/issues/7837)) - **parseKeyValue:** ignore properties in prototype chain ([cb42766a](https://github.com/angular/angular.js/commit/cb42766a14f8123aa288b6e20f879141970fb84d), [#8070](https://github.com/angular/angular.js/issues/8070), [#8068](https://github.com/angular/angular.js/issues/8068)) - **select:** auto-select new option that is marked as selected ([b8ae73e1](https://github.com/angular/angular.js/commit/b8ae73e17c19d9aebf572a75c05a7d981dcac807), [#6828](https://github.com/angular/angular.js/issues/6828)) ## Features - **$animate:** allow directives to cancel animation events ([ca752790](https://github.com/angular/angular.js/commit/ca752790d95480b7ad1125a7ddb52b726b987a24), [#7722](https://github.com/angular/angular.js/issues/7722)) - **$controller:** disable using global controller constructors ([3f2232b5](https://github.com/angular/angular.js/commit/3f2232b5a181512fac23775b1df4a6ebda67d018)) - **FormController:** add `$rollbackViewValue` to rollback all controls ([85b77314](https://github.com/angular/angular.js/commit/85b77314ed8e4b45d7365a24a47349ed94672aeb), [#7595](https://github.com/angular/angular.js/issues/7595)) - **input:** support constant expressions for ngTrueValue/ngFalseValue ([c90cefe1](https://github.com/angular/angular.js/commit/c90cefe16142d973a123e945fc9058e8a874c357), [#8041](https://github.com/angular/angular.js/issues/8041), [#5346](https://github.com/angular/angular.js/issues/5346), [#1199](https://github.com/angular/angular.js/issues/1199)) - **ngAnimate:** conditionally allow child animations to run in parallel with parent animations ([8252b8be](https://github.com/angular/angular.js/commit/8252b8be946367f1759065adf528adc908da00a2), [#7946](https://github.com/angular/angular.js/issues/7946)) - **ngModel:** bind to getters/setters ([b9fcf017](https://github.com/angular/angular.js/commit/b9fcf017316d37e91959949f56692644ce09d54a), [#768](https://github.com/angular/angular.js/issues/768)) ## Performance Improvements - **$compile:** no longer need nodeType filter when setting $scope data ([b0ca5195](https://github.com/angular/angular.js/commit/b0ca5195e88a42611e933c49d7d2768b181b2d1b), [#7887](https://github.com/angular/angular.js/issues/7887)) ## Breaking Changes - **$controller:** due to [3f2232b5](https://github.com/angular/angular.js/commit/3f2232b5a181512fac23775b1df4a6ebda67d018), `$controller` will no longer look for controllers on `window`. The old behavior of looking on `window` for controllers was originally intended for use in examples, demos, and toy apps. We found that allowing global controller functions encouraged poor practices, so we resolved to disable this behavior by default. To migrate, register your controllers with modules rather than exposing them as globals: Before: ```javascript function MyController() { // ... } ``` After: ```javascript angular.module('myApp', []).controller('MyController', [function() { // ... }]); ``` Although it's not recommended, you can re-enable the old behavior like this: ```javascript angular.module('myModule').config(['$controllerProvider', function($controllerProvider) { // this option might be handy for migrating old apps, but please don't use it // in new ones! $controllerProvider.allowGlobals(); }]); ``` - **input:** due to [c90cefe1](https://github.com/angular/angular.js/commit/c90cefe16142d973a123e945fc9058e8a874c357), Previously, these attributes would always be treated as strings. However, they are now parsed as expressions, and will throw if an expression is non-constant. To convert non-constant strings into constant expressions, simply wrap them in an extra pair of quotes, like so: Closes #8041 Closes #5346 Closes #1199 # 1.2.20 accidental-beautification (2014-07-11) ## Bug Fixes - **$http:** - don't remove content-type header if data is set by request transform ([7027844d](https://github.com/angular/angular.js/commit/7027844d42cd428cb799f38f9e9b303da013ac4f), [#7910](https://github.com/angular/angular.js/issues/7910)) - add ability to remove default headers ([172a4093](https://github.com/angular/angular.js/commit/172a40931be5fe47e7732e5ba173895a1d59c5cd), [#5784](https://github.com/angular/angular.js/issues/5784)) - **$location:** remove query args when passed in object ([a26acb64](https://github.com/angular/angular.js/commit/a26acb64fe2ed3e05bf21ac1c058d6ac59b89870), [#6565](https://github.com/angular/angular.js/issues/6565)) - **input:** - escape forward slash in email regexp ([da0e3c99](https://github.com/angular/angular.js/commit/da0e3c99f51c196f58758841d4d8492a9fa09e20), [#8096](https://github.com/angular/angular.js/issues/8096)) - modify email validation regexp to match rfc1035 ([816b8423](https://github.com/angular/angular.js/commit/816b84230cdd8273ba19e8dec3b6f2e800f76612), [#6026](https://github.com/angular/angular.js/issues/6026)) - **parseKeyValue:** ignore properties in prototype chain ([873acf8f](https://github.com/angular/angular.js/commit/873acf8fab3eb41914920259e713e1916e3c4f38), [#8070](https://github.com/angular/angular.js/issues/8070), [#8068](https://github.com/angular/angular.js/issues/8068)) ## Features - **ngAnimate:** conditionally allow child animations to run in parallel with parent animations ([931789ec](https://github.com/angular/angular.js/commit/931789ec1476e1d06739e63cb423eb87172b5ebc), [#7946](https://github.com/angular/angular.js/issues/7946)) # 1.3.0-beta.14 harmonious-cacophonies (2014-06-30) This release contains security fixes for $parse that prevent arbitrary code execution via Angular expressions under some very specific conditions. The only applications affected by these vulnerabilities are those that match all of the following conditions: - application mixes server-side and client-side templating - the server-side templating contains XSS vulnerabilities - the vulnerabilities in the server-side templating are being guarded by server-side XSS filters or on the client-side via [CSP](http://en.wikipedia.org/wiki/Content_Security_Policy) - the server-side XSS vulnerabilities can be used to augment the client-side template processed by Angular Applications not meeting all of the conditions are not vulnerable. This fix is in both 1.3.0-beta.14 and 1.2.19 release. The Angular team would like to thank [Jann Horn](http://thejh.net) for reporting these vulnerabilities via [security@angularjs.org]. ## Bug Fixes - **$compile:** bind ng-attr-* even if unbound attribute follows ng-attr-* ([8b0258d8](https://github.com/angular/angular.js/commit/8b0258d878cac20cd25c0958fd6e136a08b97df6), [#7739](https://github.com/angular/angular.js/issues/7739)) - **$http:** - should not read statusText on IE<10 when request is aborted ([31ae3e71](https://github.com/angular/angular.js/commit/31ae3e71647eadbbe1df40f9dedb55e1e0715f98)) - add the PATCH shortcut back ([b28b5caa](https://github.com/angular/angular.js/commit/b28b5caab1529b3970f10f0a4de43c0c975e3886), [#5894](https://github.com/angular/angular.js/issues/5894)) - **$injector:** check if a fn is an array explicitly ([b1a6baac](https://github.com/angular/angular.js/commit/b1a6baac2de84a1ecdc000085e8bbd016eb5c100), [#7904](https://github.com/angular/angular.js/issues/7904), [#2653](https://github.com/angular/angular.js/issues/2653)) - **$interval:** when canceling, use clearInterval from $window instead of global scope. ([a4904c0f](https://github.com/angular/angular.js/commit/a4904c0f83838222b98a875c56779a7f1a4a650a)) - **$parse:** - prevent invocation of Function's bind, call and apply ([77ada4c8](https://github.com/angular/angular.js/commit/77ada4c82d6b8fc6d977c26f3cdb48c2f5fbe5a5)) - forbid __proto__ properties in angular expressions ([6081f207](https://github.com/angular/angular.js/commit/6081f20769e64a800ee8075c168412b21f026d99)) - forbid __{define,lookup}{Getter,Setter}__ properties ([48fa3aad](https://github.com/angular/angular.js/commit/48fa3aadd546036c7e69f71046f659ab1de244c6)) - forbid referencing Object in angular expressions ([528be29d](https://github.com/angular/angular.js/commit/528be29d1662122a34e204dd607e1c0bd9c16bbc)) - handle constants as one-time binding expressions ([d9763f1b](https://github.com/angular/angular.js/commit/d9763f1bd355190b9d4e5723e4632cbc232f0543), [#7970](https://github.com/angular/angular.js/issues/7970)) - **$timeout/$interval:** if invokeApply is false, do not use evalAsync ([19b6b343](https://github.com/angular/angular.js/commit/19b6b3433ae9f8523cbc72ae97dbcf0c06960148), [#7999](https://github.com/angular/angular.js/issues/7999), [#7103](https://github.com/angular/angular.js/issues/7103)) - **Angular:** nodeName should always be lowercase ([dafb8a3c](https://github.com/angular/angular.js/commit/dafb8a3cd12e7c3247838f536c25eb796331658d), [#3987](https://github.com/angular/angular.js/issues/3987)) - **Angular.copy:** preserve prototype chain when copying objects ([b59b04f9](https://github.com/angular/angular.js/commit/b59b04f98a0b59eead53f6a53391ce1bbcbe9b57), [#5063](https://github.com/angular/angular.js/issues/5063), [#3767](https://github.com/angular/angular.js/issues/3767), [#4996](https://github.com/angular/angular.js/issues/4996)) - **core:** drop the toBoolean function ([bdfc9c02](https://github.com/angular/angular.js/commit/bdfc9c02d021e08babfbc966a007c71b4946d69d), [#3969](https://github.com/angular/angular.js/issues/3969), [#4277](https://github.com/angular/angular.js/issues/4277), [#7960](https://github.com/angular/angular.js/issues/7960)) - **injector:** allow multiple loading of function modules ([2f0a4488](https://github.com/angular/angular.js/commit/2f0a4488731fdb0e8217325dbb52a576defd09bd), [#7255](https://github.com/angular/angular.js/issues/7255)) - **input:** - improve html5 validation support ([1f6a5a1a](https://github.com/angular/angular.js/commit/1f6a5a1a9255a2db19a1ea4c04cdbcdbb2850b6c), [#7936](https://github.com/angular/angular.js/issues/7936), [#7937](https://github.com/angular/angular.js/issues/7937)) - escape forward slash in email regexp ([b775e2bc](https://github.com/angular/angular.js/commit/b775e2bca1093e9df62a269b5bda968555ea0ded), [#7938](https://github.com/angular/angular.js/issues/7938)) - **jqLite:** - never add to the cache for non-element/document nodes ([91754a76](https://github.com/angular/angular.js/commit/91754a76e0ef9a7456a5b9819d1c5807c0a575bb), [#7966](https://github.com/angular/angular.js/issues/7966)) - don't attach event handlers to comments or text nodes ([462dbb20](https://github.com/angular/angular.js/commit/462dbb2016a218d84760b6da171f1b15c9e416c3), [#7913](https://github.com/angular/angular.js/issues/7913), [#7942](https://github.com/angular/angular.js/issues/7942)) - convert NodeList to an Array to make PhantomJS 1.x happy ([ceaea861](https://github.com/angular/angular.js/commit/ceaea861ebec957c99bbca6fd88ed33fbc15afbf), [#7851](https://github.com/angular/angular.js/issues/7851)) - **numberFilter:** correctly round fractions despite floating-point arithmetics issues in JS ([189cd064](https://github.com/angular/angular.js/commit/189cd064feeb710fe54ee2ca83449b3eaf82b403), [#7870](https://github.com/angular/angular.js/issues/7870), [#7878](https://github.com/angular/angular.js/issues/7878)) - **testabilityPatch:** fix invocations of angular.mock.dump ([e8e07502](https://github.com/angular/angular.js/commit/e8e07502776e48bf48b83a836f7422d164cbb1d7)) ## Features - **NgModel:** - port the email input type to use the validators pipeline ([67379242](https://github.com/angular/angular.js/commit/6737924210570e8369ab72415e3098c6df4d3f6b)) - port the URL input type to use the validators pipeline ([3ee65730](https://github.com/angular/angular.js/commit/3ee65730639fc61d76e1055a6ca74e35eb48b838)) - **jqLite:** support isDefaultPrevented for triggerHandler dummies ([7e71acd1](https://github.com/angular/angular.js/commit/7e71acd1781ed44a7306d94338388c90f4420a24), [#8008](https://github.com/angular/angular.js/issues/8008)) ## Performance Improvements - **forEach:** use native for loop instead of forEach for Arrays ([36625de0](https://github.com/angular/angular.js/commit/36625de0d3ebc1fc091af474d942c6ce16b0a1c0)) ## Breaking Changes - **$parse:** - due to [77ada4c8](https://github.com/angular/angular.js/commit/77ada4c82d6b8fc6d977c26f3cdb48c2f5fbe5a5), You can no longer invoke .bind, .call or .apply on a function in angular expressions. This is to disallow changing the behaviour of existing functions in an unforseen fashion. - due to [6081f207](https://github.com/angular/angular.js/commit/6081f20769e64a800ee8075c168412b21f026d99), The (deprecated) __proto__ propery does not work inside angular expressions anymore. - due to [48fa3aad](https://github.com/angular/angular.js/commit/48fa3aadd546036c7e69f71046f659ab1de244c6), This prevents the use of __{define,lookup}{Getter,Setter}__ inside angular expressions. If you really need them for some reason, please wrap/bind them to make them less dangerous, then make them available through the scope object. - due to [528be29d](https://github.com/angular/angular.js/commit/528be29d1662122a34e204dd607e1c0bd9c16bbc), This prevents the use of `Object` inside angular expressions. If you need Object.keys, make it accessible in the scope. - **Angular.copy:** due to [b59b04f9](https://github.com/angular/angular.js/commit/b59b04f98a0b59eead53f6a53391ce1bbcbe9b57), This changes `angular.copy` so that it applies the prototype of the original object to the copied object. Previously, `angular.copy` would copy properties of the original object's prototype chain directly onto the copied object. This means that if you iterate over only the copied object's `hasOwnProperty` properties, it will no longer contain the properties from the prototype. This is actually much more reasonable behaviour and it is unlikely that applications are actually relying on this. If this behaviour is relied upon, in an app, then one should simply iterate over all the properties on the object (and its inherited properties) and not filter them with `hasOwnProperty`. **Be aware that this change also uses a feature that is not compatible with IE8.** If you need this to work on IE8 then you would need to provide a polyfill for `Object.create` and `Object.getPrototypeOf`. - **core:** due to [bdfc9c02](https://github.com/angular/angular.js/commit/bdfc9c02d021e08babfbc966a007c71b4946d69d), values 'f', '0', 'false', 'no', 'n', '[]' are no longer treated as falsy. Only JavaScript falsy values are now treated as falsy by the expression parser; there are six of them: false, null, undefined, NaN, 0 and "". Closes #3969 Closes #4277 Closes #7960 - **$timeout/$interval:** - due to [19b6b343](https://github.com/angular/angular.js/commit/19b6b3433ae9f8523cbc72ae97dbcf0c06960148) Previously, even if invokeApply was set to false, a $rootScope digest would occur during promise resolution. This is no longer the case, as promises returned from $timeout and $interval will no longer trigger $evalAsync (which in turn causes a $digest) if `invokeApply` is false. Workarounds include manually triggering $scope.$apply(), or returning $q.defer().promise from a promise callback, and resolving or rejecting it when appropriate. var interval = $interval(function() { if (someRequirementFulfilled) { $interval.cancel(interval); $scope.$apply(); } }, 100, 0, false); or: var interval = $interval(function (idx) { // make the magic happen }, 1000, 10, false); interval.then(function(idx) { var deferred = $q.defer(); // do the asynchronous magic --- $evalAsync will cause a digest and cause // bindings to update. return deferred.promise; }); # 1.2.19 precognitive-flashbacks (2014-06-30) ## Bug Fixes - **$compile:** bind ng-attr-* even if unbound attribute follows ng-attr-* ([ed59370d](https://github.com/angular/angular.js/commit/ed59370d805a88c9ac012a8e417faf2a9f902776)) - **$http:** should not read statusText on IE<10 when request is aborted ([0c80df21](https://github.com/angular/angular.js/commit/0c80df21b66f4b147b6b55c27ad794be5802b411)) - **$injector:** check if a fn is an array explicitly ([67c11b9a](https://github.com/angular/angular.js/commit/67c11b9a3914a24aaf72f36bbe038ba5efa7ddf3), [#7904](https://github.com/angular/angular.js/issues/7904), [#2653](https://github.com/angular/angular.js/issues/2653)) - **$interval:** when canceling, use clearInterval from $window instead of global scope. ([f780ccfa](https://github.com/angular/angular.js/commit/f780ccfa1c9a8d4c6191b0756ff77dc5749cf8c5)) - **$parse:** - make the window check in ensureSafeObject IE8 friendly ([ba62e975](https://github.com/angular/angular.js/commit/ba62e975f1a0cebf08dedbb1501f72b166af66db)) - prevent invocation of Function's bind, call and apply ([07fa87a8](https://github.com/angular/angular.js/commit/07fa87a8a82b8be155d8c898bb79e5d9277adfb4)) - forbid __proto__ properties in angular expressions ([cb713e60](https://github.com/angular/angular.js/commit/cb713e6045413a25b54ad3267476fa29efd70646)) - forbid __{define,lookup}{Getter,Setter}__ properties ([89ca8597](https://github.com/angular/angular.js/commit/89ca8597341aa5585bcf728fa677022b7ec9c071)) - forbid referencing Object in angular expressions ([bc6fb7cc](https://github.com/angular/angular.js/commit/bc6fb7cc94afddcb11b94f74d13812a6be1cdb64)) - **injector:** allow multiple loading of function modules ([d71f16e7](https://github.com/angular/angular.js/commit/d71f16e7459f1d3705ccf47a13227d4727be9670), [#7255](https://github.com/angular/angular.js/issues/7255)) - **input:** - improve html5 validation support ([ab2e83c8](https://github.com/angular/angular.js/commit/ab2e83c8c8fa60ca15b1a9539a6587dc363b20f1), [#7937](https://github.com/angular/angular.js/issues/7937), [#7957](https://github.com/angular/angular.js/issues/7957)) - escape forward slash in email regexp ([2a45cea0](https://github.com/angular/angular.js/commit/2a45cea0baaf615b799b54897bfe40d32381e7a2), [#7938](https://github.com/angular/angular.js/issues/7938)) - **jqLite:** change expando property to a more unique name ([74e1cc68](https://github.com/angular/angular.js/commit/74e1cc683be315f6db05e22e185b3d27460d132a)) - **numberFilter:** correctly round fractions despite floating-point arithmetics issues in JS ([e5f454c8](https://github.com/angular/angular.js/commit/e5f454c8afc15336dc1faa52704a483cedfacd4a), [#7870](https://github.com/angular/angular.js/issues/7870), [#7878](https://github.com/angular/angular.js/issues/7878)) - **testabilityPatch:** fix invocations of angular.mock.dump ([5e944a1c](https://github.com/angular/angular.js/commit/5e944a1cf1356bd069d3616f24323a0cb3ace87c)) ## Performance Improvements - **jqLite:** don't use reflection to access expandoId ([a4faa5cd](https://github.com/angular/angular.js/commit/a4faa5cde722556bd41d75daf346c63a9b6962e9)) ## Breaking Changes - **$parse:** - due to [07fa87a8](https://github.com/angular/angular.js/commit/07fa87a8a82b8be155d8c898bb79e5d9277adfb4), You can no longer invoke .bind, .call or .apply on a function in angular expressions. This is to disallow changing the behaviour of existing functions in an unforseen fashion. - due to [cb713e60](https://github.com/angular/angular.js/commit/cb713e6045413a25b54ad3267476fa29efd70646), The (deprecated) __proto__ propery does not work inside angular expressions anymore. - due to [89ca8597](https://github.com/angular/angular.js/commit/89ca8597341aa5585bcf728fa677022b7ec9c071), This prevents the use of __{define,lookup}{Getter,Setter}__ inside angular expressions. If you really need them for some reason, please wrap/bind them to make them less dangerous, then make them available through the scope object. - due to [bc6fb7cc](https://github.com/angular/angular.js/commit/bc6fb7cc94afddcb11b94f74d13812a6be1cdb64), This prevents the use of `Object` inside angular expressions. If you need Object.keys, make it accessible in the scope. # 1.3.0-beta.13 idiosyncratic-numerification (2014-06-16) ## Bug Fixes - **jqLite:** change expando property to a more unique name ([20c3c9e2](https://github.com/angular/angular.js/commit/20c3c9e25f6417773333727549ed2ca2d3505b44)) # 1.3.0-beta.12 ephemeral-acceleration (2014-06-13) ## Bug Fixes - **$compile:** - ensure transclude works at root of templateUrl ([398053c5](https://github.com/angular/angular.js/commit/398053c56352487751d14ea41b3b892960397019), [#7183](https://github.com/angular/angular.js/issues/7183), [#7772](https://github.com/angular/angular.js/issues/7772)) - always error if two directives add isolate-scope and new-scope ([2cde927e](https://github.com/angular/angular.js/commit/2cde927e58c8d1588569d94a797e43cdfbcedaf9), [#4402](https://github.com/angular/angular.js/issues/4402), [#4421](https://github.com/angular/angular.js/issues/4421)) - **$injector:** report circularity in circular dependency error message ([545d22b4](https://github.com/angular/angular.js/commit/545d22b47006c1efa420ba551d4850affdba8016), [#7500](https://github.com/angular/angular.js/issues/7500)) - **$parse:** Handle one-time to `null` ([600a41a7](https://github.com/angular/angular.js/commit/600a41a7b65f2dd139664fca6331c40451db75be), [#7743](https://github.com/angular/angular.js/issues/7743), [#7787](https://github.com/angular/angular.js/issues/7787)) - **NgModel:** - ensure pattern and ngPattern use the same validator ([1be9bb9d](https://github.com/angular/angular.js/commit/1be9bb9d3527e0758350c4f7417a4228d8571440)) - make ngMinlength and ngMaxlength as standalone directives ([26d91b65](https://github.com/angular/angular.js/commit/26d91b653ac224d9d4166fea855346f5e4c4a7b4), [#6750](https://github.com/angular/angular.js/issues/6750)) - make sure the ngMinlength and ngMaxlength validators use the $validators pipeline ([5b8e7ecf](https://github.com/angular/angular.js/commit/5b8e7ecfeb722cfc7a5d92f05b57950a2aa6158b), [#6304](https://github.com/angular/angular.js/issues/6304)) - make sure the pattern validator uses the $validators pipeline ([e63d4253](https://github.com/angular/angular.js/commit/e63d4253d06ed7d344358e2c0b03311c548bc978)) - make sure the required validator uses the $validators pipeline ([e53554a0](https://github.com/angular/angular.js/commit/e53554a0e238cba7a150fd7ccf61e5e4cc0c0426), [#5164](https://github.com/angular/angular.js/issues/5164)) - **jqLite:** data should store data only on Element and Document nodes ([a196c8bc](https://github.com/angular/angular.js/commit/a196c8bca82a28c08896d31f1863cf4ecd11401c)) - **ngResource:** don't convert literal values into Resource objects when isArray is true ([16dfcb61](https://github.com/angular/angular.js/commit/16dfcb61aed28cdef3bfbed540e2deea6d9e9632), [#6314](https://github.com/angular/angular.js/issues/6314), [#7741](https://github.com/angular/angular.js/issues/7741)) ## Features - **NgModel:** introduce the $validators pipeline ([a8c7cb81](https://github.com/angular/angular.js/commit/a8c7cb81c9e67b52d5c649bf3d8cec06c5976852)) - **attrs:** trigger observers for specific ng-attributes ([d9b90d7c](https://github.com/angular/angular.js/commit/d9b90d7c10a8e1bacbee0aeb7e86093cca9e8ed2), [#7758](https://github.com/angular/angular.js/issues/7758)) - **input:** add $touched and $untouched states ([adcc5a00](https://github.com/angular/angular.js/commit/adcc5a00bf582d2b291c18e99093bb0854f7217c)) - **ngInclude:** emit $includeContentError when HTTP request fails ([e4419daf](https://github.com/angular/angular.js/commit/e4419daf705d6d2d116ced573f72c24b5c53be1f), [#5803](https://github.com/angular/angular.js/issues/5803)) ## Performance Improvements - **$compile:** move ng-binding class stamping for interpolation into compile phase ([35358fdd](https://github.com/angular/angular.js/commit/35358fddc10652ef78c72cba7b7c2d5a810631d5)) - **$http:** move xsrf cookie check to after cache check in $http ([dd1d189e](https://github.com/angular/angular.js/commit/dd1d189ee785a37fe1d9bddf3818152db6aa210a), [#7717](https://github.com/angular/angular.js/issues/7717)) - **Scope:** change Scope#id to be a simple number ([8c6a8171](https://github.com/angular/angular.js/commit/8c6a8171f9bdaa5cdabc0cc3f7d3ce10af7b434d)) - **forEach:** cache array length ([55991e33](https://github.com/angular/angular.js/commit/55991e33af6fece07ea347a059da061b76fc95f5)) - **isArray:** use native Array.isArray ([751ebc17](https://github.com/angular/angular.js/commit/751ebc17f7fc7be26613db0a3cdee05fc401318b), [#7735](https://github.com/angular/angular.js/issues/7735)) - **isWindow** optimize internal isWindow call ([b68ac4cb](https://github.com/angular/angular.js/commit/b68ac4cb4c172447ba0022fe6e7ce0ca4cb9407e)) - **jqLite:** - cache collection length for all methods that work on a single element ([41d2eba5](https://github.com/angular/angular.js/commit/41d2eba5f8322903247280000bfc5e5e8a1c1a3e)) - improve performance of jqLite#text ([92489886](https://github.com/angular/angular.js/commit/92489886dcce3bca00fe827aeb0817297b8a175c)) - optimize adding nodes to a jqLite collection ([31faeaa7](https://github.com/angular/angular.js/commit/31faeaa7293716251ed437fa54432bb89d9d48de)) - optimize element dealocation ([e35abc9d](https://github.com/angular/angular.js/commit/e35abc9d2fac0471cbe8089dc0e33a72b8029ada)) - don't use reflection to access expandoId ([ea9a130a](https://github.com/angular/angular.js/commit/ea9a130a43d165f4f4389d01ac409dd3047efcb4)) - **ngBind:** set the ng-binding class during compilation instead of linking ([fd5f3896](https://github.com/angular/angular.js/commit/fd5f3896764107635310ae52df1d80a6e08fba31)) - **shallowCopy:** use Object.keys to improve performance ([04468db4](https://github.com/angular/angular.js/commit/04468db44185e3d7968abdb23d77bf623cb5021b)) ## Breaking Changes - **$compile:** due to [2cde927e](https://github.com/angular/angular.js/commit/2cde927e58c8d1588569d94a797e43cdfbcedaf9), Requesting isolate scope and any other scope on a single element is an error. Before this change, the compiler let two directives request a child scope and an isolate scope if the compiler applied them in the order of non-isolate scope directive followed by isolate scope directive. Now the compiler will error regardless of the order. If you find that your code is now throwing a `$compile:multidir` error, check that you do not have directives on the same element that are trying to request both an isolate and a non-isolate scope and fix your code. Closes #4402 Closes #4421 - **NgModel:** due to [1be9bb9d](https://github.com/angular/angular.js/commit/1be9bb9d3527e0758350c4f7417a4228d8571440), If an expression is used on ng-pattern (such as `ng-pattern="exp"`) or on the pattern attribute (something like on `pattern="{{ exp }}"`) and the expression itself evaluates to a string then the validator will not parse the string as a literal regular expression object (a value like `/abc/i`). Instead, the entire string will be created as the regular expression to test against. This means that any expression flags will not be placed on the RegExp object. To get around this limitation, use a regular expression object as the value for the expression. //before $scope.exp = '/abc/i'; //after $scope.exp = /abc/i; - **Scope:** due to [8c6a8171](https://github.com/angular/angular.js/commit/8c6a8171f9bdaa5cdabc0cc3f7d3ce10af7b434d), Scope#$id is now of time number rather than string. Since the id is primarily being used for debugging purposes this change should not affect anyone. - **forEach:** due to [55991e33](https://github.com/angular/angular.js/commit/55991e33af6fece07ea347a059da061b76fc95f5), forEach will iterate only over the initial number of items in the array. So if items are added to the array during the iteration, these won't be iterated over during the initial forEach call. This change also makes our forEach behave more like Array#forEach. - **jqLite:** due to [a196c8bc](https://github.com/angular/angular.js/commit/a196c8bca82a28c08896d31f1863cf4ecd11401c), previously it was possible to set jqLite data on Text/Comment nodes, but now that is allowed only on Element and Document nodes just like in jQuery. We don't expect that app code actually depends on this accidental feature. # 1.2.18 ear-extendability (2014-06-13) ## Bug Fixes - **$compile:** - ensure transclude works at root of templateUrl ([fd420c40](https://github.com/angular/angular.js/commit/fd420c40613d02b3a3f7b14d00a98664518c28f0), [#7183](https://github.com/angular/angular.js/issues/7183), [#7772](https://github.com/angular/angular.js/issues/7772)) - bound transclusion to correct scope ([1382d4e8](https://github.com/angular/angular.js/commit/1382d4e88ec486b7749e45e6ccc864b3ec388cfe)) - don't pass transcludes to non-transclude templateUrl directives ([b9ddef2a](https://github.com/angular/angular.js/commit/b9ddef2a495b44cb5fe678b8753de0b7a369244d)) - don't pass transclude to template of non-transclude directive ([eafba9e2](https://github.com/angular/angular.js/commit/eafba9e2e5ddc668c534e930d83031d2e8dc32b9)) - fix nested isolated transclude directives ([bb931097](https://github.com/angular/angular.js/commit/bb9310974b6765c2b87e74ee7b8485a6e9c24740), [#1809](https://github.com/angular/angular.js/issues/1809), [#7499](https://github.com/angular/angular.js/issues/7499)) - pass transcludeFn down to nested transclude directives ([8df5f325](https://github.com/angular/angular.js/commit/8df5f3259aa776f28bf3d869fb1c03e10a897c84), [#7240](https://github.com/angular/angular.js/issues/7240), [#7387](https://github.com/angular/angular.js/issues/7387)) - **$injector:** report circularity in circular dependency error message ([14e797c1](https://github.com/angular/angular.js/commit/14e797c1a10eabd15bf8e845b62213398bcc0f58), [#7500](https://github.com/angular/angular.js/issues/7500)) - **ngResource:** don't convert literal values into Resource objects when isArray is true ([f0904cf1](https://github.com/angular/angular.js/commit/f0904cf12e4f01daa2d4fcbb20c762050125ca55), [#6314](https://github.com/angular/angular.js/issues/6314), [#7741](https://github.com/angular/angular.js/issues/7741)) ## Performance Improvements - **$compile:** move ng-binding class stamping for interpolation into compile phase ([81b7e5ab](https://github.com/angular/angular.js/commit/81b7e5ab0ee3fea410b16b09144359ceb99f5191)) - **$http:** move xsrf cookie check to after cache check in $http ([8b86d363](https://github.com/angular/angular.js/commit/8b86d363aa252c3264201b54b57c3e34f9632d45), [#7717](https://github.com/angular/angular.js/issues/7717)) - **isArray:** use native Array.isArray ([6c14fb1e](https://github.com/angular/angular.js/commit/6c14fb1eb61dc0a0552fbcb2ca3ace11c9a2f6a5)) - **jqLite:** cache collection length for all methods that work on a single element ([6d418ef5](https://github.com/angular/angular.js/commit/6d418ef5e3a775577996caf0709f79f447f77025)) - **ngBind:** set the ng-binding class during compilation instead of linking ([1b189027](https://github.com/angular/angular.js/commit/1b1890274e5a75553ddf9915bb23da48800275f9)) # 1.2.17 - quantum disentanglement (2014-06-06) ## Bug Fixes - **$animate:** - remove the need to add `display:block!important` for `ngShow`/`ngHide` ([55b2f0e8](https://github.com/angular/angular.js/commit/55b2f0e8620465559016b424967d90a86af597c0), [#3813](https://github.com/angular/angular.js/issues/3813)) - retain inline styles for property-specific transitions ([ad08638c](https://github.com/angular/angular.js/commit/ad08638c0ae61a22ce43d0b40e1220065b867672), [#7503](https://github.com/angular/angular.js/issues/7503)) - ensure class-based animations always perform a DOM operation if skipped ([34d07403](https://github.com/angular/angular.js/commit/34d0740350a50ff2c3a076eaad1e8122283448c3), [#6957](https://github.com/angular/angular.js/issues/6957)) - **$compile:** - do not merge attrs that are the same for replace directives ([b635903e](https://github.com/angular/angular.js/commit/b635903ec435ea355b0f3688c7372627d01e23e2), [#7463](https://github.com/angular/angular.js/issues/7463)) - pass `transcludeFn` down to nested transclude directives ([11385060](https://github.com/angular/angular.js/commit/113850602de2f8bc396df4ffd54bb0f1be565b17), [#7240](https://github.com/angular/angular.js/issues/7240), [#7387](https://github.com/angular/angular.js/issues/7387)) - set `$isolateScope` correctly for sync template directives ([5319621a](https://github.com/angular/angular.js/commit/5319621afd0edf60aef177a0e98dbb7c282cc418), [#6942](https://github.com/angular/angular.js/issues/6942)) - reference correct directive name in `ctreq` error ([6bea0591](https://github.com/angular/angular.js/commit/6bea0591095c19f747c08ef24cc60b34d28b2824), [#7062](https://github.com/angular/angular.js/issues/7062), [#7067](https://github.com/angular/angular.js/issues/7067)) - fix regression which affected old jQuery releases ([a97a172e](https://github.com/angular/angular.js/commit/a97a172ee9f9bcff4d4d84854ded0c72fa0f7e9a)) - **$httpBackend:** don't error when JSONP callback is called with no parameter ([a7ccb753](https://github.com/angular/angular.js/commit/a7ccb7531c92fb976c6058aef2bb18316075efb2), [#7031](https://github.com/angular/angular.js/issues/7031)) - **$location:** - don't clobber path during parsing of path ([02058bfb](https://github.com/angular/angular.js/commit/02058bfbe27296c5441fc247e5a451da83c74134), [#7199](https://github.com/angular/angular.js/issues/7199)) - fix and test html5Mode url-parsing algorithm for legacy browsers ([24f7999b](https://github.com/angular/angular.js/commit/24f7999bc16e347208aa18c418da85489286674b)) - make legacy browsers behave like modern ones in html5Mode ([e0203660](https://github.com/angular/angular.js/commit/e0203660d3af56c5a94e0a9b69c10fd5dabcf577), [#6162](https://github.com/angular/angular.js/issues/6162), [#6421](https://github.com/angular/angular.js/issues/6421), [#6899](https://github.com/angular/angular.js/issues/6899), [#6832](https://github.com/angular/angular.js/issues/6832), [#6834](https://github.com/angular/angular.js/issues/6834)) - **angular.copy:** support circular references in the value being copied ([5c997209](https://github.com/angular/angular.js/commit/5c99720934edc35dd462b1ad02c4d0205683d917), [#7618](https://github.com/angular/angular.js/issues/7618)) - **grunt-utils:** ensure special inline CSS works when `angular` is not a global ([d4231171](https://github.com/angular/angular.js/commit/d4231171582eb41d37bbb908eed23f074ab12f3f), [#7176](https://github.com/angular/angular.js/issues/7176)) - **input:** - fix `ReferenceError` in event listener ([2d7cb14a](https://github.com/angular/angular.js/commit/2d7cb14a167560edc1356dcec6f9e100ed7ac691)) - don't dirty model when input event is triggered due to a placeholder change ([109e5d1d](https://github.com/angular/angular.js/commit/109e5d1d39015af8ade1dc2aff31a2355fbab0a6), [#2614](https://github.com/angular/angular.js/issues/2614), [#5960](https://github.com/angular/angular.js/issues/5960)) - **jqLite:** use jQuery only if `jQuery.fn.on` is present ([fafcd628](https://github.com/angular/angular.js/commit/fafcd6285a6799c4e377ea33011ae3a01aac49a6)) - **limitTo:** do not convert `Infinity` to `NaN` ([fcdac65a](https://github.com/angular/angular.js/commit/fcdac65aedfdf48dd2e11d6e5850e03ec188f068), [#6771](https://github.com/angular/angular.js/issues/6771), [#7118](https://github.com/angular/angular.js/issues/7118)) - **ngAnimate:** `$animate` methods should accept native DOM elements ([9227a5db](https://github.com/angular/angular.js/commit/9227a5db947a78e3dbe8b91d5dac5d67444c855c)) - **ngClass:** - support multiple classes in key ([85ce5d0d](https://github.com/angular/angular.js/commit/85ce5d0db9fc4ee5636015fc042224785f9aa997)) - handle index changes when an item is unshifted ([a4cc9e19](https://github.com/angular/angular.js/commit/a4cc9e194468573bae5232f63044459d0de6638f), [#7256](https://github.com/angular/angular.js/issues/7256)) - **ngLocale:** fix i18n code-generation to support `get_vf_`, `decimals_`, and `get_wt_` ([96a31476](https://github.com/angular/angular.js/commit/96a314766c41bbb18bcddeddd25c8e566ab76acd)) - **ngSanitize:** encode surrogate pair properly ([3d0b49c0](https://github.com/angular/angular.js/commit/3d0b49c07f10c0a723c91629c63705647b690d81), [#5088](https://github.com/angular/angular.js/issues/5088), [#6911](https://github.com/angular/angular.js/issues/6911)) - **ngSwitch:** properly support case labels with different numbers of transclude fns ([32aa4915](https://github.com/angular/angular.js/commit/32aa491588fe4982d4056e89a5d0dd19cf835e72)) - **numberFilter:** fix rounding error edge case ([0388eed7](https://github.com/angular/angular.js/commit/0388eed7e52fdbb832a5b4ef466420a128a43800), [#7453](https://github.com/angular/angular.js/issues/7453), [#7478](https://github.com/angular/angular.js/issues/7478)) ## Features - **ngMock:** add support of mocha tdd interface ([6d1c6772](https://github.com/angular/angular.js/commit/6d1c67727ab872c44addc783ef1406952142d89e), [#7489](https://github.com/angular/angular.js/issues/7489)) ## Performance Improvements - **$interpolate:** optimize value stringification ([9d4fa33e](https://github.com/angular/angular.js/commit/9d4fa33e35d73ab28a8a187e20dfbe1f77055825), [#7501](https://github.com/angular/angular.js/issues/7501)) - **scope:** 10x. Share the child scope class. ([9ab9bf6b](https://github.com/angular/angular.js/commit/9ab9bf6b415aa216cfbfda040286e5ec99f56ee0)) # 1.2.16 badger-enumeration (2014-04-03) ## Bug Fixes - **$animate:** - ensure the CSS driver properly works with SVG elements ([38ea5426](https://github.com/angular/angular.js/commit/38ea542662b2b74703d583e3a637d65369fc26eb), [#6030](https://github.com/angular/angular.js/issues/6030)) - prevent cancellation timestamp from being too far in the future ([35d635cb](https://github.com/angular/angular.js/commit/35d635cbcbdc20f304781655f3563111afa6567f), [#6748](https://github.com/angular/angular.js/issues/6748)) - run CSS animations before JS animations to avoid style inheritance ([0e5106ec](https://github.com/angular/angular.js/commit/0e5106ec2ccc8596c589b89074d3b27d27bf395a), [#6675](https://github.com/angular/angular.js/issues/6675)) - **$parse:** mark constant unary minus expressions as constant ([6e420ff2](https://github.com/angular/angular.js/commit/6e420ff28d9b3e76ac2c3598bf3797540ef8a1d3), [#6932](https://github.com/angular/angular.js/issues/6932)) - **Scope:** - revert the __proto__ cleanup as that could cause regressions ([2db66f5b](https://github.com/angular/angular.js/commit/2db66f5b695a06cff62a52e55e55d1a0a25eec2f)) - more scope clean up on $destroy to minimize leaks ([7e4e696e](https://github.com/angular/angular.js/commit/7e4e696ec3adf9d6fc77a7aa7e0909a9675fd43a), [#6794](https://github.com/angular/angular.js/issues/6794), [#6856](https://github.com/angular/angular.js/issues/6856), [#6968](https://github.com/angular/angular.js/issues/6968)) - aggressively clean up scope on $destroy to minimize leaks ([8d4d437e](https://github.com/angular/angular.js/commit/8d4d437e8cd8d7cebab5d9ae5c8bcfeef2118ce9), [#6794](https://github.com/angular/angular.js/issues/6794), [#6856](https://github.com/angular/angular.js/issues/6856)) - **filter.ngdoc:** Check if "input" variable is defined ([a275d539](https://github.com/angular/angular.js/commit/a275d539f9631d6ec64d03814b3b09420e6cf1ee), [#6819](https://github.com/angular/angular.js/issues/6819)) - **input:** don't perform HTML5 validation on updated model-value ([b2363e31](https://github.com/angular/angular.js/commit/b2363e31023df8240113f68b4e01d942f8009b60), [#6796](https://github.com/angular/angular.js/issues/6796), [#6806](https://github.com/angular/angular.js/issues/6806)) - **ngClass:** handle ngClassOdd/Even affecting the same classes ([55fe6d63](https://github.com/angular/angular.js/commit/55fe6d6331e501325c2658df8995dcc083fc4ffb), [#5271](https://github.com/angular/angular.js/issues/5271)) ## Features - **$http:** add xhr statusText to completeRequest callback ([32c09c1d](https://github.com/angular/angular.js/commit/32c09c1d195fcb98f6e29fc7e554a867f4762301), [#2335](https://github.com/angular/angular.js/issues/2335), [#2665](https://github.com/angular/angular.js/issues/2665), [#6713](https://github.com/angular/angular.js/issues/6713)) # v1.2.15 beer-underestimating (2014-03-21) ## Bug Fixes - **$$RAFProvider:** check for webkitCancelRequestAnimationFrame ([e84da228](https://github.com/angular/angular.js/commit/e84da2283c4e195be557f7b06c8783fe502acbbb), [#6526](https://github.com/angular/angular.js/issues/6526)) - **$$rAF:** always fallback to a $timeout incase native rAF isn't supported ([ee8e4a94](https://github.com/angular/angular.js/commit/ee8e4a946ed8f943e00846b88d8d51c0b2cd1fab), [#6654](https://github.com/angular/angular.js/issues/6654)) - **$compile:** support templates with thead and tfoot root elements ([ca0ac649](https://github.com/angular/angular.js/commit/ca0ac649971ae4fb50419b38f92a98d2226eb696), [#6289](https://github.com/angular/angular.js/issues/6289)) - **$http:** - allow sending Blob data using $http ([fbb125a3](https://github.com/angular/angular.js/commit/fbb125a3af164e52af2f8119175b04cbbed2f331), [#5012](https://github.com/angular/angular.js/issues/5012)) - don't covert 0 status codes to 404 for non-file protocols ([f108a2a9](https://github.com/angular/angular.js/commit/f108a2a994149ecc011e29f327bcb8e11adf72d9), [#6074](https://github.com/angular/angular.js/issues/6074), [#6155](https://github.com/angular/angular.js/issues/6155)) - **$rootScope:** - ng-repeat can't handle NaN values. #4605 ([e48c28fe](https://github.com/angular/angular.js/commit/e48c28fe9292efe7af6205b2be116d2350990c73), [#4605](https://github.com/angular/angular.js/issues/4605)) - $watchCollection should call listener with oldValue ([3dd95727](https://github.com/angular/angular.js/commit/3dd9572754c7bafec30dd625f5c611346959c969), [#2621](https://github.com/angular/angular.js/issues/2621), [#5661](https://github.com/angular/angular.js/issues/5661), [#5688](https://github.com/angular/angular.js/issues/5688), [#6736](https://github.com/angular/angular.js/issues/6736)) - **angular.bootstrap:** only allow angular to load once ([0d60f8d3](https://github.com/angular/angular.js/commit/0d60f8d367e38224696749b0f7de04bd60649815), [#5863](https://github.com/angular/angular.js/issues/5863), [#5587](https://github.com/angular/angular.js/issues/5587)) - **jqLite:** traverse `host` property for DocumentFragment in inheritedData() ([98d825e1](https://github.com/angular/angular.js/commit/98d825e10d3bf76f47e69abba857a8933c8cb7d9), [#6637](https://github.com/angular/angular.js/issues/6637)) - **ngAnimate:** setting classNameFilter disables animation inside ng-if ([a41a2a1d](https://github.com/angular/angular.js/commit/a41a2a1d2ce20f86ac2709592e4ada527160e580), [#6539](https://github.com/angular/angular.js/issues/6539)) - **ngCookie:** convert non-string values to string ([93d1c95c](https://github.com/angular/angular.js/commit/93d1c95c61dbfa565333bb64527a103242175af7), [#6151](https://github.com/angular/angular.js/issues/6151), [#6220](https://github.com/angular/angular.js/issues/6220)) - **ngTouch:** update workaround for desktop Webkit quirk ([01a34f51](https://github.com/angular/angular.js/commit/01a34f513bb567ed6d4c81d00d7c2a777c0dae01), [#6302](https://github.com/angular/angular.js/issues/6302)) - **orderBy:** support string predicates containing non-ident characters ([10d3e1e4](https://github.com/angular/angular.js/commit/10d3e1e4472ab9f5cf4418b6438ec2e0f2b0b288), [#6143](https://github.com/angular/angular.js/issues/6143), [#6144](https://github.com/angular/angular.js/issues/6144)) - **select:** avoid checking option element selected properties in render ([dc149de9](https://github.com/angular/angular.js/commit/dc149de9364c66b988f169f67cad39577ba43434), [#2448](https://github.com/angular/angular.js/issues/2448), [#5994](https://github.com/angular/angular.js/issues/5994), [#6769](https://github.com/angular/angular.js/issues/6769)) # 1.2.14 feisty-cryokinesis (2014-03-01) ## Bug Fixes - **$animate:** - delegate down to addClass/removeClass if setClass is not found ([18c41af0](https://github.com/angular/angular.js/commit/18c41af065006a804a3d38eecca7ae184103ece9), [#6463](https://github.com/angular/angular.js/issues/6463)) - ensure all comment nodes are removed during a leave animation ([f4f1f43d](https://github.com/angular/angular.js/commit/f4f1f43d5140385bbf070510975f72b65196e08a), [#6403](https://github.com/angular/angular.js/issues/6403)) - only block keyframes if a stagger is set to occur ([e71e7b6c](https://github.com/angular/angular.js/commit/e71e7b6cae57f25c5837dda98551c8e0a5cb720d), [#4225](https://github.com/angular/angular.js/issues/4225)) - ensure that animateable directives cancel expired leave animations ([e9881991](https://github.com/angular/angular.js/commit/e9881991ca0a5019d3a4215477738ed247898ba0), [#5886](https://github.com/angular/angular.js/issues/5886)) - ensure all animated elements are taken care of during the closing timeout ([99720fb5](https://github.com/angular/angular.js/commit/99720fb5ab7259af37f708bc4eeda7cbbe790a69), [#6395](https://github.com/angular/angular.js/issues/6395)) - fix for TypeError Cannot call method 'querySelectorAll' in cancelChildAnimations ([c914cd99](https://github.com/angular/angular.js/commit/c914cd99b3aaf932e3c0e2a585eead7b76621f1b), [#6205](https://github.com/angular/angular.js/issues/6205)) - **$http:** - do not add trailing question ([c8e03e34](https://github.com/angular/angular.js/commit/c8e03e34b27a8449d8e1bfe0e3801d6a67ae2c49), [#6342](https://github.com/angular/angular.js/issues/6342)) - send GET requests by default ([267b2173](https://github.com/angular/angular.js/commit/267b217376ed466e9f260ecfdfa15a8227c103ff), [#5985](https://github.com/angular/angular.js/issues/5985), [#6401](https://github.com/angular/angular.js/issues/6401)) - **$parse:** reduce false-positives in isElement tests ([5fe1f39f](https://github.com/angular/angular.js/commit/5fe1f39f027c6f2c6a530975dd5389d788d3c0eb), [#4805](https://github.com/angular/angular.js/issues/4805), [#5675](https://github.com/angular/angular.js/issues/5675)) - **input:** use ValidityState to determine validity ([c2d447e3](https://github.com/angular/angular.js/commit/c2d447e378dd72d1b955f476bd5bf249625b4dab), [#4293](https://github.com/angular/angular.js/issues/4293), [#2144](https://github.com/angular/angular.js/issues/2144), [#4857](https://github.com/angular/angular.js/issues/4857), [#5120](https://github.com/angular/angular.js/issues/5120), [#4945](https://github.com/angular/angular.js/issues/4945), [#5500](https://github.com/angular/angular.js/issues/5500), [#5944](https://github.com/angular/angular.js/issues/5944)) - **isElement:** reduce false-positives in isElement tests ([75515852](https://github.com/angular/angular.js/commit/75515852ea9742d3d84a0f463c2a2c61ef2b7323)) - **jqLite:** - properly toggle multiple classes ([4e73c80b](https://github.com/angular/angular.js/commit/4e73c80b17bd237a8491782bcf9e19f1889e12ed), [#4467](https://github.com/angular/angular.js/issues/4467), [#6448](https://github.com/angular/angular.js/issues/6448)) - make jqLite(' {# Be aware that we need these extra new lines here or marked will not realise that the
above is HTML and wrap each line in a

- thus breaking the HTML #} angular.js-1.2.28/docs/config/templates/tutorial.template.html000066400000000000000000000000471244317266200244160ustar00rootroot00000000000000{% include 'overview.template.html' %} angular.js-1.2.28/docs/config/templates/versions-data.template.js000066400000000000000000000002731244317266200250030ustar00rootroot00000000000000// Meta data used by the AngularJS docs app angular.module('versionsData', []) .value('NG_VERSION', {$ doc.currentVersion | json $}) .value('NG_VERSIONS', {$ doc.versions | json $}); angular.js-1.2.28/docs/content/000077500000000000000000000000001244317266200162615ustar00rootroot00000000000000angular.js-1.2.28/docs/content/api/000077500000000000000000000000001244317266200170325ustar00rootroot00000000000000angular.js-1.2.28/docs/content/api/index.ngdoc000066400000000000000000000221171244317266200211600ustar00rootroot00000000000000@ngdoc overview @name API Reference @description # AngularJS API Docs Welcome to the AngularJS API docs page. These pages contain the AngularJS reference materials for version . The documentation is organized into **{@link guide/module modules}** which contain various components of an AngularJS application. These components are {@link guide/directive directives}, {@link guide/services services}, {@link guide/filter filters}, {@link guide/providers providers}, {@link guide/templates templates}, global APIs, and testing mocks.

**Angular Namespaces `$` and `$$`** To prevent accidental name collisions with your code, Angular prefixes names of public objects with `$` and names of private objects with `$$`. Please do not use the `$` or `$$` prefix in your code.
## Angular Namespace ## {@link ng ng (core module)} This module is provided by default and contains the core components of AngularJS.
{@link ng#directive Directives}

This is the core collection of directives you would use in your template code to build an AngularJS application.

Some examples include: {@link ng.directive:ngClick ngClick}, {@link directive:ngInclude ngInclude}, {@link directive:ngRepeat ngRepeat}, etc…

{@link ng#service Services / Factories}

This is the core collection of services which are used within the DI of your application.

Some examples include: {@link ng.$compile $compile}, {@link ng.$http $http}, {@link ng.$location $location}, etc…

{@link ng#filter Filters}

The core filters available in the ng module are used to transform template data before it is rendered within directives and expressions.

Some examples include: {@link ng.filter:filter filter}, {@link ng.filter:date date}, {@link ng.filter:currency currency}, {@link ng.filter:lowercase lowercase}, {@link ng.filter:uppercase uppercase}, etc...

{@link ng#function Global APIs}

The core global API functions are attached to the angular object. These core functions are useful for low level JavaScript operations within your application.

Some examples include: {@link angular.copy angular.copy()}, {@link angular.equals angular.equals()}, {@link angular.element angular.element()}, etc...

## {@link ngRoute ngRoute} Use ngRoute to enable URL routing to your application. The ngRoute module supports URL management via both hashbang and HTML5 pushState.
Include the **angular-route.js** file and set **ngRoute** as a dependency for this to work in your application.
{@link ngRoute#service Services / Factories} The following services are used for route management:
  • {@link ngRoute.$routeParams $routeParams} is used to access the querystring values present in the URL.
  • {@link ngRoute.$route $route} is used to access the details of the route that is currently being accessed.
  • {@link ngRoute.$routeProvider $routeProvider} is used to register routes for the application.
{@link ngRoute#directive Directives} The {@link ngRoute.directive:ngView ngView} directive will display the template of the current route within the page.
## {@link ngAnimate ngAnimate} Use ngAnimate to enable animation features into your application. Various core ng directives will provide animation hooks into your application when ngAnimate is included. Animations are defined by using CSS transitions/animations or JavaScript callbacks.
Include the **angular-animate.js** file and set **ngAnimate** as a dependency for this to work in your application.
{@link ngAnimate#service Services / Factories} Use {@link ngAnimate.$animate $animate} to trigger animation operations within your directive code.
{@link ngAnimate CSS-based animations} Follow ngAnimate’s CSS naming structure to reference CSS transitions / keyframe animations in AngularJS. Once defined, the animation can be triggered by referencing the CSS class within the HTML template code.
{@link ngAnimate JS-based animations} Use {@link angular.Module#animation module.animation()} to register a JavaScript animation. Once registered, the animation can be triggered by referencing the CSS class within the HTML template code.
## {@link ngResource ngResource} Use the ngResource module when querying and posting data to a REST API.
Include the **angular-resource.js** file and set **ngResource** as a dependency for this to work in your application.
{@link ngResource#service Services / Factories} The {@link ngResource.$resource $resource} service is used to define RESTful objects which communicate with a REST API.
## {@link ngCookies ngCookies} Use the ngCookies module to handle cookie management within your application.
Include the **angular-cookies.js** file and set **ngCookies** as a dependency for this to work in your application.
{@link ngCookies#service Services / Factories} The following services are used for cookie management:
  • The {@link ngCookies.$cookies $cookie} service is a convenient wrapper to store simple data within browser cookies.
  • {@link ngCookies.$cookieStore $cookieStore} is used to store more complex data using serialization.
## {@link ngTouch ngTouch} Use ngTouch when developing for mobile browsers/devices.
Include the **angular-touch.js** file and set **ngTouch** as a dependency for this to work in your application.
{@link ngTouch#service Services / Factories} The {@link ngTouch.$swipe $swipe} service is used to register and manage mobile DOM events.
{@link ngTouch#directive Directives} Various directives are available in ngTouch to emulate mobile DOM events.
## {@link ngSanitize ngSanitize} Use ngSanitize to securely parse and manipulate HTML data in your application.
Include the **angular-sanitize.js** file and set **ngSanitize** as a dependency for this to work in your application.
{@link ngSanitize#service Services / Factories} The {@link ngSanitize.$sanitize $sanitize} service is used to clean up dangerous HTML code in a quick and convenient way.
{@link ngTouch#filter Filters} The {@link ngSanitize.filter:linky linky filter} is used to turn URLs into HTML links within the provided string.
## {@link ngMock ngMock} Use ngMock to inject and mock modules, factories, services and providers within your unit tests
Include the **angular-mocks.js** file into your test runner for this to work.
{@link ngMock#service Services / Factories}

ngMock will extend the behavior of various core services to become testing aware and manageable in a synchronous manner.

Some examples include: {@link ngMock.$timeout $timeout}, {@link ngMock.$interval $interval}, {@link ngMock.$log $log}, {@link ngMock.$httpBackend $httpBackend}, etc...

{@link ngMock#function Global APIs}

Various helper functions are available to inject and mock modules within unit test code.

Some examples {@link angular.mock.inject inject()}, {@link angular.mock.module module()}, {@link angular.mock.dump dump()}, etc...

angular.js-1.2.28/docs/content/error/000077500000000000000000000000001244317266200174125ustar00rootroot00000000000000angular.js-1.2.28/docs/content/error/$animate/000077500000000000000000000000001244317266200210745ustar00rootroot00000000000000angular.js-1.2.28/docs/content/error/$animate/notcsel.ngdoc000066400000000000000000000002731244317266200235610ustar00rootroot00000000000000@ngdoc error @name $animate:notcsel @fullName Not class CSS selector @description Expecting a CSS selector for class. Class selectors must start with `.`, for example: `.my-class-name`. angular.js-1.2.28/docs/content/error/$cacheFactory/000077500000000000000000000000001244317266200220515ustar00rootroot00000000000000angular.js-1.2.28/docs/content/error/$cacheFactory/iid.ngdoc000066400000000000000000000004671244317266200236410ustar00rootroot00000000000000@ngdoc error @name $cacheFactory:iid @fullName Invalid ID @description This error occurs when trying to create a new `cache` object via {@link ng.$cacheFactory} with an ID that was already used to create another cache object. To resolve the error please use a different cache ID when calling `$cacheFactory`. angular.js-1.2.28/docs/content/error/$compile/000077500000000000000000000000001244317266200211065ustar00rootroot00000000000000angular.js-1.2.28/docs/content/error/$compile/ctreq.ngdoc000066400000000000000000000027631244317266200232500ustar00rootroot00000000000000@ngdoc error @name $compile:ctreq @fullName Missing Required Controller @description This error occurs when {@link ng.$compile HTML compiler} tries to process a directive that specifies the {@link ng.$compile#description_comprehensive-directive-api_directive-definition-object `require` option} in a {@link ng.$compile#description_comprehensive-directive-api directive definition}, but the required directive controller is not present on the current DOM element (or its ancestor element, if `^` was specified). To resolve this error ensure that there is no typo in the required controller name and that the required directive controller is present on the current element. If the required controller is expected to be on a ancestor element, make sure that you prefix the controller name in the `require` definition with `^`. If the required controller is optionally requested, use `?` or `^?` to specify that. Example of a directive that requires {@link ng.directive:ngModel ngModel} controller: ``` myApp.directive('myDirective', function() { return { require: 'ngModel', ... } } ``` This directive can then be used as: ``` ``` Example of a directive that optionally requires a {@link ng.directive:form form} controller from an ancestor: ``` myApp.directive('myDirective', function() { return { require: '^?form', ... } } ``` This directive can then be used as: ```
``` angular.js-1.2.28/docs/content/error/$compile/iscp.ngdoc000066400000000000000000000014431244317266200230620ustar00rootroot00000000000000@ngdoc error @name $compile:iscp @fullName Invalid Isolate Scope Definition @description When declaring isolate scope the scope definition object must be in specific format which starts with mode character (`@&=`) with an optional local name. ``` myModule.directive('directiveName', function factory() { return { ... scope: { 'attrName': '@', // OK 'attrName2': '=localName', // OK 'attrName3': 'name', // ERROR: missing mode @&= 'attrName4': ' = name', // ERROR: extra spaces 'attrName5': 'name=', // ERROR: must be prefixed with @&= } ... } }); ``` Please refer to the {@link ng.$compile#description_comprehensive-directive-api_directive-definition-object `scope` option} of the directive definition documentation to learn more about the API. angular.js-1.2.28/docs/content/error/$compile/multidir.ngdoc000066400000000000000000000012661244317266200237600ustar00rootroot00000000000000@ngdoc error @name $compile:multidir @fullName Multiple Directive Resource Contention @description This error occurs when multiple directives are applied to the same DOM element, and processing them would result in a collision or an unsupported configuration. To resolve this issue remove one of the directives which is causing the collision. Example scenarios of multiple incompatible directives applied to the same element include: * Multiple directives requesting `isolated scope`. * Multiple directives publishing a controller under the same name. * Multiple directives declared with the `transclusion` option. * Multiple directives attempting to define a `template` or `templateURL`. angular.js-1.2.28/docs/content/error/$compile/nodomevents.ngdoc000066400000000000000000000016231244317266200244650ustar00rootroot00000000000000@ngdoc error @name $compile:nodomevents @fullName Interpolated Event Attributes @description This error occurs when one tries to create a binding for event handler attributes like `onclick`, `onload`, `onsubmit`, etc. There is no practical value in binding to these attributes and doing so only exposes your application to security vulnerabilities like XSS. For these reasons binding to event handler attributes (all attributes that start with `on` and `formaction` attribute) is not supported. An example code that would allow XSS vulnerability by evaluating user input in the window context could look like this: ```
click me
``` Since the `onclick` evaluates the value as JavaScript code in the window context, setting the `username` model to a value like `javascript:alert('PWND')` would result in script injection when the `div` is clicked. angular.js-1.2.28/docs/content/error/$compile/nonassign.ngdoc000066400000000000000000000022571244317266200241270ustar00rootroot00000000000000@ngdoc error @name $compile:nonassign @fullName Non-Assignable Expression @description This error occurs when a directive defines an isolate scope property (using the `=` mode in the {@link ng.$compile#description_comprehensive-directive-api_directive-definition-object `scope` option} of a directive definition) but the directive is used with an expression that is not-assignable. In order for the two-way data-binding to work, it must be possible to write new values back into the path defined with the expression. For example, given a directive: ``` myModule.directive('myDirective', function factory() { return { ... scope: { localValue: '=bind' } ... } }); ``` Following are invalid uses of this directive: ``` ``` To resolve this error, always use path expressions with scope properties that are two-way data-bound: ``` ``` angular.js-1.2.28/docs/content/error/$compile/selmulti.ngdoc000066400000000000000000000016231244317266200237620ustar00rootroot00000000000000@ngdoc error @name $compile:selmulti @fullName Binding to Multiple Attribute @description Binding to the `multiple` attribute of `select` element is not supported since switching between multiple and single mode changes the {@link ng.directive:ngModel `ngModel`} object type from instance to array of instances which breaks the model semantics. If you need to use different types of `select` elements in your template based on some variable, please use {@link ng.directive:ngIf ngIf} or {@link ng.directive:ngSwitch ngSwitch} directives to select one of them to be used at runtime. Example with invalid usage: ``` ``` Example that uses ngIf to pick one of the `select` elements based on a variable: ``` ``` angular.js-1.2.28/docs/content/error/$compile/tpload.ngdoc000066400000000000000000000011601244317266200234030ustar00rootroot00000000000000@ngdoc error @name $compile:tpload @fullName Error Loading Template @description This error occurs when {@link ng.$compile `$compile`} attempts to fetch a template from some URL, and the request fails. To resolve this error, ensure that the URL of the template is spelled correctly and resolves to correct absolute URL. The [Chrome Developer Tools](https://developers.google.com/chrome-developer-tools/docs/network#network_panel_overview) might also be helpful in determining why the request failed. If you are using {@link ng.$templateCache} to pre-load templates, ensure that the cache was populated with the template. angular.js-1.2.28/docs/content/error/$compile/tplrt.ngdoc000066400000000000000000000030061244317266200232660ustar00rootroot00000000000000@ngdoc error @name $compile:tplrt @fullName Invalid Template Root @description When a directive is declared with `template` (or `templateUrl`) and `replace` mode on, the template must have exactly one root element. That is, the text of the template property or the content referenced by the templateUrl must be contained within a single html element. For example, `

blah blah blah

` instead of simply `blah blah blah`. Otherwise, the replacement operation would result in a single element (the directive) being replaced with multiple elements or nodes, which is unsupported and not commonly needed in practice. For example a directive with definition: ``` myModule.directive('myDirective', function factory() { return { ... replace: true, templateUrl: 'someUrl' ... } }); ``` And a template provided at URL `someUrl`. The template must be an html fragment that has only a single root element, like the `div` element in this template: ```
Hello World!
``` An an invalid template to be used with this directive is one that defines multiple root nodes or elements. For example: ``` Hello World! ``` Watch out for html comments at the beginning or end of templates, as these can cause this error as well. Consider the following template: ```