3rd party jquery-ui install with angular-cli

Question!

I am using angular-cli for my angular2 project. In my project I want to use jquery-ui. I installed jquery-ui with

npm install jquery jquery-ui

I edited my angular-cli-build.js

module.exports = function(defaults) {
  return new Angular2App(defaults, {
    vendorNpmFiles: [
          'jquery/src/jquery.js',
          'jquery-ui/jquery-ui.js'
    ]
  });
};

How it will update automatically in my dist/vendor folder , Do I need to add the css files (like css/jquery-ui.css) in my index.html like ?

I have followed the moment.js integration from this link but it didnt help with jquery-ui. I will appreciate a working example of jquery-ui integration with angular-cli

By : pd farhad


Answers

In your angular-cli-build.js put like :

'jquery/dist/jquery.min.js',
jquery-ui/jquery-ui.min.js', 


This video can help you solving your question :)
By: admin