My question is very basilar, but I didn't found anything in the web: how can I tell Yeoman to use a specific version of Angularjs instead of the latest available?
Thanks
You can force Angular's requested version in generated bower.json file, and then running bower install...
Then please be sure all other dependencies in bower.json file are not broken by the previous downgrade, possibly downgrading other libraries versions, too...
Related
First, I am unsure how checking the version of Angular because if I type the command, "Angular -v" it says "Angular: command not found". I think someone told me that it was version 1.5, but I want it to be 1.6 or whatever the latest angular 1 version is available to upgrade.
Lastly, what is the command to update the version to the latest version of Angular 1.x? Is it, "npm install [NAME OF ANGULAR 1.X PACKAGE]"?
You can use the npm update as per the npm documentation:
https://docs.npmjs.com/all
You can run an npm outdated first to see what is in need of updating and then run the npm update, but some combination in the command prompt of...
npm update
npm outdated
... should at least get you started.
As for your version of angular somewhere in your project you have to have the angular source code thaht will include the license version, or a link to a cdn or the like for it. Maybe search the project for something like "license AngularJS v".
The uninstall/reinstall works too, but you might need to do it for more than just the angular package. Even with the update method it is likely that you'll need to look into dependencies and other packages that will become outdated.
So I'm using a pretty old version (1.2) of Angular in my app and would like to update it to at least 1.3.5. There's a bunch of other packages in my bower.json file that depend on that version of Angular.
bower update doesn't seem to do the trick.
Is there a quick and easy way to upgrade my version of Angular and have the rest of my packages follow suit?
Any help is appreciated. Thanks in advance!
Run this command first:
npm install bower-update -g
then run:
bower-update
I've had an issue with GlyphIcons not loading correctly when using this bower component: https://github.com/twbs/bootstrap-sass
I tracked down the issue to finding an #at-root element being injected into my CSS file.
I was able to get glyph icons working by removing the element, IMHO this is a damn useless SASS selector that does not add much value in the context it was being used.
Once I tracked down the issue, I then looked at the issues register in their GIT repository and found this item that suggested that the version of SASS compiler needed to be at least 3.3. See: https://github.com/twbs/bootstrap-sass/issues/953.
I am on windows and just using bower components so I did a re-installation of Boostrap-Sass
bower install bootstrap-sass -g
But this did not resolve my problem.
I'm not sure what the issue is, I hope someone has a solution to getting the latest bootstrap sass working on a windows/node environment.
For now I have fixed the issue by find the 2 references to #at-root in folder bootstrap-sass-official and just removing them.
Installed the latest version of Ruby
I followed this link http://awordpress.net/blog/install-sass-compass-manually-windows/ for doing manual install of SASS.
I'm not sure why I could not get compass to install (as per the link above) but it did not matter as the firth point in that link was all I needed to get SASS updated on a windows
gem install sass
I have installed AngularJS using bower, by calling:
$ bower install angular-latest
Now I wonder how to integrate AngularJS into my html file. Apparently, there is neither an angular[.min].js file nor an index.js file as suggested by the bower documentation.
I can't imagine that I am the first person on earth to discover this problem, but unfortunately I did not find any clues on this on Google (but perhaps I only used the wrong terms for searching).
Any idea of how to include AngularJS?
Okay, I found the solution:
$ bower install angular
And everything is fine ...
What you installed with
$ bower install angular-latest
was only the latest source code. You need to actually build AngularJS.
First, you need to install all of the following dependencies if you haven't already:
Git
Node.js
Java
Grunt
Bower
Second, change into the angular.js directory.
Then, install node.js dependencies and bower components:
$ npm install
$ bower install
Finally, you're ready to build your package:
$ grunt package
In the resulting build directory, you'll find
angular.js — The non-minified angular script
angular.min.js — The minified angular script
I'm developing an application using brunch.io and want to use a jquery plugin (in this case the jQuery Waypoints plugin).
What is the recommended way of doing this?
I know it is possible to get the plugin through
npm install waypoints
But that doesn't make $('.my-div').waypoint() work in my app.
Thank You
place the plugin into vendor/scripts and that’s all
Brunch now supports Bower, so adding Waypoints can be done like so:
bower install --save jquery-waypoints
As of version 2.0.3 Waypoints doesn't specify a main in its bower.json, so you'll need to specify a main in the overrides section of your app's bower.json to indicate which file Brunch should use as the entry point to the installed package, e.g. "jquery-waypoints": { "main": "waypoints.min.js" }.
Of course, this will not work if you're using a version of Brunch without Bower support.