angular.js v1.5.0-rc.1 Release Notes

Release Date: 2016-01-15 // about 8 years ago
  • ๐Ÿ”‹ Features

    ๐Ÿ› Bug Fixes

    ๐Ÿ’ฅ Breaking Changes

    • $component: โšก๏ธ These breaking changes affect only applications updating from previous 1.5 beta / rc versions

      • Due to d91cf167, 0๏ธโƒฃ the default controllerAs value for components is now $ctrl (previously the name of the component was used). To migrate, either set controllerAs to the component name, or change the property name in your templates to $ctrl
      • Due to 25bc5318, it is no longer possible to set the restrict option on directives created via the module.component() helper. All components are now element directives (restrict: 'E'). If you need a directive that is not an element then you must use the module.directive() helper instead.
      • Due to f31c5a39, components are now always created with scope: {} (isolate scope). Previously, it was also possible to create components ๐Ÿ”ง with scope: true or scope: false. If your components rely on this scope configuration, you will have to create a regular directive instead.
      • Due to 6a47c0d7, 0๏ธโƒฃ the transclude property is now false by default (previously true). If you created components that expected transclusion then you must change your code to specify transclude: true.
    • ๐Ÿ”— linky: due to 98c2db7f,

    Before this change, the filter assumed that the input (if not undefined/null) was of type 'string' and that certain methods (such as .match()) would be available on it. Passing a non-string value would most likely result in a not-very-useful error being thrown (trying to call a method that does not exist) or in unexpected behavior (if the input happened to have the assumed methods).

    After this change, a proper (informative) error will be thrown. If you want to pass non-string values through linky, you need to explicitly convert them to strings first. Since input values could be initialized asynchronously, undefined or null will still be returned unchanged (without throwing an error).