I used pull request #30, but still getting an error:
Error: Assertion Failed: template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead? at new Error (native) at Error.EmberError (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:41133:23) at Object.Ember.assert (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:32532:15) at CoreView.extend.render (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:73318:19) at EmberRenderer_createElement [as createElement] (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:68963:16) at EmberRenderer.Renderer_renderTree [as renderTree] (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:37456:24) at Object.merge.ensureChildrenAreInDOM (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:70613:22) at View.extend._ensureChildrenAreInDOM (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:70576:27) at Queue.invokeWithOnError (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:29455:20) at Object.Queue.flush (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:29511:13)
This is when using Ember 1.10 and the following code:
id="users"
value=userId
on-input="setUserSearch"
on-select="selectUser"
placeholder="Add instructor"
}}
{{#if isLoading}}
<div style="padding: 2px 16px;">Searching for users...</div>
{{else}}
{{#each users}}
{{#ic-autocomplete-option label=username value=id}}
<img {{bind-attr src="avatar"}}> {{firstName}} {{lastName}}
{{/ic-autocomplete-option}}
{{else}}
<div style="padding: 2px 16px;">No results</div>
{{/each}}
{{/if}}
{{/ic-autocomplete}}```
I built the library myself using the scripts included in the ./script folder.
I used pull request #30, but still getting an error:
Error: Assertion Failed: template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead? at new Error (native) at Error.EmberError (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:41133:23) at Object.Ember.assert (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:32532:15) at CoreView.extend.render (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:73318:19) at EmberRenderer_createElement [as createElement] (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:68963:16) at EmberRenderer.Renderer_renderTree [as renderTree] (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:37456:24) at Object.merge.ensureChildrenAreInDOM (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:70613:22) at View.extend._ensureChildrenAreInDOM (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:70576:27) at Queue.invokeWithOnError (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:29455:20) at Object.Queue.flush (http://localhost:7000/assets/admin-6774ba8c135d66de6c0ffa6854176021.js:29511:13)
This is when using Ember 1.10 and the following code: