This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Leaving templateUrl empty in $routeProvider.when() crashes the browser #12176
Open
Description
AngularJS 1.4.0
Firefox 38.0.5 (Privacy Mode)
When setting up routing (ngRoute) in the module's .config(), using an empty string as the templateUrl will force the browser into either an infinite loop or a crash.
$routeProvider.when('/custom/route' {templateUrl:'', controller:'', controllerAs:''})
will crash. Replacing templateUrl with a string (even a non-existing file) does not cause the crash.