Code Monkey home page Code Monkey logo

Comments (3)

timschlechter avatar timschlechter commented on June 15, 2024

I'm not sure what's going wrong, but my advice would be not using bstagsinput.js for the moment. I pulled this in by a pull request as an alternative angularjs directive which you could try to use.

You should be able to make things works with bootstrat-tagsinput.js and bootstrap-tagsinput-angular.js, look at the examples patcfor working examples.

I'm planning on taking out the angularjs directive completely, and moving it to its own repository in the future, to keep thing neat and separated. I will also fix the having-2-directives-issue I created.

from bootstrap-templates.

mariendries avatar mariendries commented on June 15, 2024

Hi,
Have been trying for a while again, like you said with bootstrap-tagsinput.js and bootstrap-tagsinput-angular.js .
Still not working. Can't even create tags without typeahead.
Maybe caused by bootstrap 3.0.0?

Looking forward to an update!

from bootstrap-templates.

jrocket avatar jrocket commented on June 15, 2024

I'm not sure this is related to angular.js.
I 'managed' to replicate the "Object # has no method 'typeahead'" error with the following
jquery-1.10.2.min.js
bootstrap.min.js -> 3.0.2
typeahead.min.js -> 0.9.3
bootstrap-tagsinput.js -> latest

and followed the source from the exemple page

<input type="text" value="Amsterdam,Washington" data-role="tagsinput" />
<script>
$('input').tagsinput();

// Adding custom typeahead support using http://twitter.github.io/typeahead.js
$('input').tagsinput('input').typeahead({
  prefetch: 'citynames.json'
}).bind('typeahead:selected', $.proxy(function (obj, datum) {  
  this.tagsinput('add', datum.value);
  this.tagsinput('input').typeahead('setQuery', '');
}, $('input')));
</script>

from bootstrap-templates.

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.