Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

support option in dataset #1200

Closed
IgorMinar opened this issue Jul 25, 2012 · 1 comment
Closed

support option in dataset #1200

IgorMinar opened this issue Jul 25, 2012 · 1 comment

Comments

@IgorMinar
Copy link
Contributor

The following code snippet (which can be played with in this jsFiddle: http://jsfiddle.net/h9tvW/2/) runs fine:

<div ng-app="">
  <input type="text" list="options"/>
  <datalist id="options">
   <option value="VAL1">OPTION1</option>
   <option value="VAL2">OPTION2</option>
  </datalist>
</div>​

but gives a bunch of Angular errors in the Chrome console:

Error: No controller: select
    at Error (unknown source)
    at i (http://docs.angularjs.org/angular-1.0.0.min.js:40:295)
    at k (http://docs.angularjs.org/angular-1.0.0.min.js:42:340)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:198)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:215)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:215)
    at $get.o (http://docs.angularjs.org/angular-1.0.0.min.js:37:332)
    at http://docs.angularjs.org/angular-1.0.0.min.js:15:440
    at Object.$get.e.$eval (http://docs.angularjs.org/angular-1.0.0.min.js:85:416)
    at Object.$get.e.$apply (http://docs.angularjs.org/angular-1.0.0.min.js:86:6) <option value="VAL1"> 

Error: No controller: select
    at Error (unknown source)
    at i (http://docs.angularjs.org/angular-1.0.0.min.js:40:295)
    at k (http://docs.angularjs.org/angular-1.0.0.min.js:42:340)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:198)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:215)
    at e (http://docs.angularjs.org/angular-1.0.0.min.js:38:215)
    at $get.o (http://docs.angularjs.org/angular-1.0.0.min.js:37:332)
    at http://docs.angularjs.org/angular-1.0.0.min.js:15:440
    at Object.$get.e.$eval (http://docs.angularjs.org/angular-1.0.0.min.js:85:416)
    at Object.$get.e.$apply (http://docs.angularjs.org/angular-1.0.0.min.js:86:6) <option value="VAL2"> 

fix proposal

on line 14276 of http://code.angularjs.org/1.0.1/angular-1.0.1.js,

require: '^select'

should be changed to

require: '^select?' .

@vojtajina
Copy link
Contributor

Duplication of #1165

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants