This addon supplies a copy() function and Copyable mixin to replace the function and mixin now being deprecated in Ember.js.
ember install ember-copy
To use the addon, wherever you were using:
import {copy, Copyable} from '@ember/object/internals'
instead use:
import {copy, Copyable} from 'ember-copy'
git clone https://github.com/emberjs/ember-copy
cd ember-copy
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.