1

enter image description here

I am new to Ember CLI and I don't know how to add my own util file in my app.

I want to add this summernote.js file to my project.

How do I add this file to the components using Ember CLI?

locks
  • 6,537
  • 32
  • 39
Nitesh singh
  • 915
  • 11
  • 21

1 Answers1

0

You need to use import keyword in your component file. Example app/components/my-component:

import Ember from 'ember';
import MyUtil from '../utils/my-util';

// ... you can use MyUtil here
// ... rest of file
Daniel Kmak
  • 18,164
  • 7
  • 66
  • 89