I've just started learning angular 2 and though of create a small app using it but could not find way to use angular 2 modules like angular 2,routers etc , So could some please help out in how to download and manage angular 2 modules using bower.
There is no official bower package for angular 2. Use npm instead.
npm install angular2 --save
Related
I've installed electron-vue to use vue with electron-app. When I wrote the following command npm run dev an error was shown to me, I found listing directory instead of the LandingPage.
The electron-vue is not being updated at this time. (currently, electronic version 2.x)
There's a boilerplate that I forked the electron-vue and updated all the modules with the latest modules. The use method is the same and we have added the ui framework and css-precessor.
Electron 5
Vue-CLI 3
Babel 7
Vue 2.6
css-preprocessor
Sass
Less
Stylus
UI Framework
Quasar 1.x
Vuteify 2.x
We recommend you try it.
https://github.com/kdydesign/vue-electron5
I am trying to use material ui for react , however this library can only be used with node package manager (npm) , my ASP.net MVC 4 project uses Nuget as a package manager so there is no way to add npm modules or even use them within js file
I need a solution to be able to add Material UI npm package to my project , is it possible to do so ? to combine both nuget and npm to manage my package
Nuget package are too limited and all the useful stuff need npm or yarn to be installed
It would be really helpful if i find a detailed guide or steps to make this work
latest nuget package of react js is 14
i tried npm install #material-ui/core
but i cant even install the module because i dont have a packages.json file and my project does not recognize the materiel modules so i cant also use improrts within JSX nor JS files
You install the node modules package in your ClientApp (or whatever directory your React app lives) that should be located on the same level as the controllers. This directory will function as it's own closed off react application, which have to be hooked up to the ASP.NET solution.
Microsoft has a template for creating ASP.NET web applications with React which you can check out.
You use nuget to handle dependencies in your solution and then npm to handle the node modules directory.
I want to refresh part of view, so I want to use Ajax.BeginForm. Fo this I am installing jquery.unobtrusive-ajax plugin from nuget package manager.
The problem is, After installation of Package from Nuget, JavaScript files are not coming in lib or script folder.
Am I making any mistake or there is a different way to do it?
Thanks
Keval
For scripts use bower / npm / yarn / libman. Nuget is not recommended for client side libraries. It is for installing server side packages / libraries.
While the Visual Studio and Visual Studio Code MVC templates comes with some client packages such as jQuery, jQueryValidation, bootstrap etc. the bower.json and .bowerrc files are completely missing, so when I go into the VS bower package manager I don't see the already installed packages which is quite annoying.
The thing is this started happening to me 2 weeks ago( around the time I tried npm package manager and did a VS Code update), how can I re-enable bower appearing with the MVC template?
This might be related to bower being deprecated. Those libraries in the template are no longer managed by bower thus they don't show in the manager. If you manually add the bower.json and .bowerrrc files you might be able to continue using bower for js library dependency management. First delete the local copies of the js files that were not added by bower, then re-add them using bower.
However, bower recommends using yarn for js library dependency management. For the client packages jquery, jquery-validation, and bootstrap you could use yarn, npm, or local copies. But for large common libraries like jquery you may want to include from Google's CDN https://developers.google.com/speed/libraries/#jquery
Is there a way to install tweenmax using bower?
I've been looking into angular animations and I noticed the egghead tutorial uses tweenmax but it imports it directly into the html. I want to use bower to import so that I can have my imported packages all managed take advantage of the gulp build process to create the minified vendor script.
It seems that they name tweenmax as GSAP. Correct me if I'm mistaken but I believe this is the same thing esp looking at the main section of the bower file (git repo) which points to tweenmax. Thus, I installed using:
bower install gsap --save