Giter Site home page Giter Site logo

Comments (3)

abdullahc avatar abdullahc commented on July 23, 2024

any solution on this ? Chrome extension stops working because of this

from allmighty-autocomplete.

abdullahc avatar abdullahc commented on July 23, 2024

ah figured it out.

Go to around line 225 of autocomplete JS
comment the template variable and uncomment the templateUrl

    /*template: '<div class="autocomplete {{attrs.class}}" id="{{attrs.id}}">'+
                '<input type="text" ng-model="searchParam" placeholder="{{attrs.placeholder}}" class="{{attrs.inputclass}}" id="{{attrs.inputid}}"/>' +
                '<ul ng-show="completing">' +
                  '<li suggestion ng-repeat="suggestion in suggestions | filter:searchFilter | orderBy:\'toString()\' track by $index"'+
                  'index="{{$index}}" val="{{suggestion}}" ng-class="{active: '+
                  '($index == selectedIndex)}" ng-click="select(suggestion)" '+
                  'ng-bind-html="suggestion | highlight:searchParam">'+
                    '{{suggestion}}' +
                  '</li>'+
                '</ul>'+
              '</div>'*/
     templateUrl: 'js/script/ac_template.html'

Basically since this module hooks onto your app, angular considered the html pass on the template unsafe, so force it load from your domain filesystem(localhost etc)

http://docs.angularjs.org/api/ng/service/$sce for more info

from allmighty-autocomplete.

j0an avatar j0an commented on July 23, 2024

Thanks @abdullahc :)

from allmighty-autocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.