ng-href when populating list of links in Chrome extension

后端 未结 1 1378
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 10:42

I\'m working on a Chrome extension with Angular and I\'m trying to use ng-repeat to create a list of links. Works great except I\'m having issues populating the

1条回答
  •  -上瘾入骨i
    2021-01-05 11:10

    I also face the same issue now. Have not found any solution. Please check this link: https://groups.google.com/forum/?fromgroups=#!topic/angular/YiP02I1wkNU.

    Follow this, check the app.js on http://plnkr.co/edit/prTGFiheFI7GXNoDhoGT?p=preview

    Code like:

    var app = angular.module('angularjs-starter', []);

    app.config(function($compileProvider){ $compileProvider.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|chrome-extension):/); });

    It works for me.

    0 讨论(0)
提交回复
热议问题