Search code examples
angularjstwitter-bootstrapangular-uiui-selectangular-ui-select

The <ui-select></ui-select> tag throws an error in browser


The tag is not being recognized in editor. I have included the script tags for angular select and bootstrap.


Solution

  • the error Error: [$compile:ctreq] Controller "ngModel", required by directive "uiSelectSingle" tells you exactly what's wrong - you need to use ng-model to get the value out. For example:

    <ui-select ng-model="person.selected" theme="bootstrap">