Giter Club home page Giter Club logo

Comments (6)

rohtashsethi avatar rohtashsethi commented on May 19, 2024 1

We have to use bs-options instead of ng-options. AngularStrap provide a directive bs-options for TypeAhead.
http://mgcrea.github.io/angular-strap/#typeaheads

from stock-dog.

WiHHi-Z3-PuX avatar WiHHi-Z3-PuX commented on May 19, 2024

I have the same problem. I think it comes from this line:

in addstock-modal.html

from stock-dog.

Jakhotiya avatar Jakhotiya commented on May 19, 2024

As of angular 1.4 you can not use ng-options on any other element except select.
You can check this issue on angular-strap documentation. You can choose to use their alternative to ng-options,ie. bs-options. For now that will work. But later on when you start pulling data from yahoo finance you will have another issue. So I suggest you use select tag instead of input tag. Of course you won't be able to use nice autocomplete thing but you will be able to complete the chapter

from stock-dog.

rhjennings avatar rhjennings commented on May 19, 2024

Has anyone gotten past this error?
Being new to angular, I tried to replace the input with a select tag. I'm not seeing any errors however the Stock never gets populated.
This is the tag I replaced the input with:

<select class="form-control" id="stock-symbol" ng-model="newStock.company" ng-options="company as company.label for company in companies" bs-select></select>

from stock-dog.

jtsnr avatar jtsnr commented on May 19, 2024

@rhjennings the stock never gets populated due to another issue - #4

from stock-dog.

robeverett avatar robeverett commented on May 19, 2024

Well, well, this answers my question of why ul and li elements are used in the bootstrap dropdown, (and not select and option elements)

It's a shame there isn't a walkthrough on using bootstrap components with angularJS 1.4.9 anywhere :(

from stock-dog.

Related Issues (7)

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.