Easily add jquery to your ember applications
ember install ember-jquery
ember-cli-build.js
:
module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
// Disable jQuery bundled with Ember.js
vendorFiles: { 'jquery.js': null },
// Example to include jQuery slim instead of default build
jquery: {
slim: true
}
});
}
Available options:
slim
boolean (default false)
Use the jQuery slim build, released with jQuery 3.0 and upwards.
git clone <repository-url>
this repositorycd ember-jquery
npm install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.