Using jquery in Ember-cli

前端 未结 3 2208
半阙折子戏
半阙折子戏 2020-12-19 23:17

I am relatively new to both Ember.js and Ember-cli and would really appreciate some help please with using a jquery tooltip in a custom view. All code is below, but when my

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 23:19

    There are some issues in the code but just regarding error, Its coz you need to import the tooltip library(js file) into ember-cli. It is done in brocfile.js before calling app.toTree() like below

    app.import('vendor/tooltip.js');

    Follow the link for more details. http://www.ember-cli.com/#managing-dependencies

提交回复
热议问题