So - I want to have a play with typeahead in an ember app.
I get a cli app up and running then I run
bower install typeahead.js
I can see that the code has been put into bower_components.
I then add the following to the brocfile:
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/typeahead.js/dist/typeahead.bundle.min.js');
module.exports = app.toTree();
However it doesn't work - I get
Uncaught ReferenceError: Bloodhound is not defined
From reading the docs - installing with bower and adding the lines in the brocfile should be enough to satisfy it? Am I reading it wrong or is this a bug?
I have created a public GIT repo which shows this issue:
https://github.com/wayne-o/ember-cli-bootstrap
All I have done is:
ember new bootstrap-test
bower install bootstrap
And then added:
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
to the brockfile...
It hasn't worked...