Skip to content

0.4.0

Compare
Choose a tag to compare
@christopherthielen christopherthielen released this 19 Jan 01:56
· 1341 commits to master since this release

0.4.0 (2017-01-17)

Bug Fixes

  • $state: Fix "Possibly unhandled rejection" by catch()ing the transition promise (f2910e9b, closes #3246, #2889)
  • ui-sref-active-eq: Compare parameter values using typed parameters (67e4997e)
  • uiView: do not leave initial view scope undestroyed (fix unhandled rejection) (5be98e04, closes #3164)
  • urlMatcherFactory: Check for null in int.is() Fixes message: Cannot read property 'toString' of nul (61728d71, closes #3197)

Features

  • $templateFactory: use $templateRequest from AngularJS (9a1af98), closes [#]
  • $templateFactory: refactor to a Provider to have a $http/$templateRequest switch (7f1dec00)

BREAKING CHANGE: Use angular 1.3+ $templateRequest service to fetch templates

We now fetch templates using $templateRequest when it is available (angular 1.3+).
You can revert to previous template fetching behavior using $http by configuring the ui-router $templateFactoryProvider.

.config(function($templateFactoryProvider) {
  $templateFactoryProvider.shouldUnsafelyUseHttp(true);
});

There are security ramifications to using $http to fetch templates.
Read
Impact on loading templates
for more details.