Category Archives: AngularJS

How to get the url parameters using angular js

I know this is an old question, but it took me some time to sort this out given the sparse Angular documentation. The RouteProvider and routeParams is the way to go. The route wires up the URL to your Controller/View and the routeParams can be passed... Read More | Share it now!

AngularJS cookies

Angular-cookies Doc:$cookies Download angular-cookies.js: controller.js var myApp =... Read More | Share it now!

javascript获取随机颜色   在制作饼图或标签云时,我们通常需要很多颜色,方法有二。一是准备一组漂亮的候选颜色,二是随机生成颜色。在数量很多或不明确时,我想后者就是唯一的出路了。谷歌了一下,整理如下,按由浅入深的顺序排列。 实现1 var... Read More | Share it now!

也许,DOM 不是答案

也许,DOM 不是答案 作者: 阮一峰 日期: 2015年2月22日 有一个词”手机网站”(mobile... Read More | Share it now!

ionic Angular -> IOS/Android   Adding new cordova plugin gives EACCES error #174 Error: spawn EACCES resolved by running... Read More | Share it now!

Fixing npm permissions   You may receive an EACCES error when you try to install a package globally. This indicates that you do not have permission to write to the directories that npm uses to store global... Read More | Share it now!

remove sudo install npm

/usr/local/lib/node_modules/ npm uninstall xxxx   Apparently, there was a “/Users/myusername/local” folder that... Read More | Share it now!

Grunt wiredep:app no such file or directory bower.json   Running “wiredep:app” (wiredep) task Warning: ENOENT, no such file or directory... Read More | Share it now!