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.
sanitizeUri function throws an error when ng-href gets an integer #16626
Closed
Description
I'm submitting a ...
- bug report
- feature request
- other
Current behavior:
if i write
<a ng-href="{{ user.id }}">bla</a>
in a template and user.id is an integer
sanitizeUri function (angular.js:19343) throws an error, that uri.trim is not a function (well it is obviously not)
Expected / new behavior:
probably the uri should be casted to string
Minimal reproduction of the problem with instructions:
http://plnkr.co/edit/sd1UHVd8iHF1rPXNL3Z0
AngularJS version: 1.7.2
Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Anything else: