Comments (6)
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.
I have the same problem. I think it comes from this line:
in addstock-modal.html
from stock-dog.
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.
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.
@rhjennings the stock never gets populated due to another issue - #4
from stock-dog.
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)
- Missing tags? HOT 3
- _.contains is not a function HOT 4
- $scope.watchlist.addStock is not a function HOT 4
- Animation stops after a few updates on Chapter 1 Step 10
- $http.jsonp(...).success is not a function angularjs. Any idea how to integrate with API by overcoming this error?? HOT 1
- TypeError: Model.watchlists.push is not a functiom HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stock-dog.