Aurelia - Use/Import . js files

Asked

Viewed 42 times

0

Good morning guys, this may be a really stupid question, but I honestly can’t find anything on the Internet.

I would like to know how to include my . js files in a project using Urelia, the situation is as follows:

I have a template created here, which contains several and several files. JS (see attachment), this template uses from graphs to tables that depend on files. JS, when adding the template files in the project’s src folder, the files. css run very well, it looks beautiful, the problem is when will use some feature that depends on . JS gives dick.

A part of the scripts I’m trying to use is attached.

But to be simple, I would like to know, how to use a simple file. JS, is there any procedure to import a . JS into the template? I have to convert the file to some kind of other file than . JS?

As dumb as the question sounds, I just can’t find anything in the documentation and internet forums.Alguns dos plugins .JS/Jquery que estou tentando utilizar.

  • i don’t know any English but I have translated into google something that I found similar to your "Calling External javascript from Within Aurelia templates" http://www.sobell.net/calling-external-javascript-from-within-aurelia-templates/

  • The normal path to include a library in Aurelia consists of two steps: 1) Import the library via npm install <package> -save; 2) Adjust the Aurelia.json file that is in the aurelia_project folder. After this, packages are available to be imported into the other modules of your application. Note that some packages are "hard chin", and require some customization in Aurelia.json.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.