|
AngularJS Migration Resources
|
Summary of Notable Changes and Important Breaking Changes
|
|---|---|
|
• $location began using '!' as the default hash-prefix for hash-bang URLs instead of empty strings
• $compile by default no longer pre-assigns bindings on component/directive controller instances
• http began imposing additional restrictions to JSONP requests for security reasons
• jqLite was updated to align more closely with jQuery 3
• input[type=radio] began using strict comparison (===) to determine the “checked” status
• Improved support for input[type=range] resulted in some changed behavior of range inputs (when bound to ngModel)
• ngTransclude began treating whitespace-only content as empty and uses the fallback content instead
• ngAria/ngModel no longer overrides the default $inEmpty() method for custom checkbox-shaped controls
• success() and error() methods from $http were deprecated
|
|
|
• $resource got support for request and requestError interceptors
• The following deprecated features were removed:
◦ $controllerProvider.allowGlobals() flag
◦ $compileProvider.preAssignBindingsEnabled() flag
◦ angular.lowercase and angular.uppercase methods
◦ $cookieStore service from the ngCookies module
◦ ngClick override directive and corresponding services from the ngTouch module
◦ complete ngScenario module
|
|
|
• 1.8 is a breaking change that addresses a security issue from 1.7
• jqLite no longer turns XHTML-like strings to sibling elements when not in XHTML mode
|