ember-3

Why won't my tracked array update in Ember Octane?

怎甘沉沦 提交于 2020-03-21 03:55:07
问题 I'm trying out Octane, and for some reason, if I show an array in a template and I add a new object to it, the UI doesn't update. What am I doing wrong? Here is my template: <label for="new-field-name">Field Name</label> <Input id="new-field-name" @value={{this.newFieldName}} type="text" /> <button {{on "click" this.addField}}>Add field</button> {{#each this.fields as |field|}} <p>{{field.name}}</p> {{/each}} And the component: import Component from '@glimmer/component'; import { tracked }

JQueryUI at Ember upgrade

我的未来我决定 提交于 2019-12-10 14:30:34
问题 After upgrade and dismissing Bower as recommended: Is there a way to include JQueryUI into an Ember project without using Bower? My project depends heavily of JQueryUI dialogs. $ ember -v ember-cli: 3.3.0 node: 8.11.3 os: linux x64 Do I have to reintroduce Bower into my project? Like in this old Using jquery in Ember-cli advice? 回答1: does this solve your use case?: ember install ember-auto-import npm install jquery-ui and then wherever you need to use it: import { stuff } from 'jquery-ui';