Why ng-href behaving weird while parsing geo string

安稳与你 提交于 2019-12-01 10:36:43
squiroid

You need to use aHrefSanitizationWhitelist([regexp]);

regex should match the url of your's So in your case it should be like

 $compileProvider.aHrefSanitizationWhitelist(/^\s*(geo):/);

regEx:- starting with geo followed by ' : '

Please see $compileProvider Documentation for more info.

Plunker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!