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: https://docs.angularjs.org/api/ngCookies/service/$cookies Download angular-cookies.js: https://docs.angularjs.org/api/ngCookies https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-cookies.js controller.js var myApp =... Read More | Share it now!

javascript获取随机颜色

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

也许,DOM 不是答案

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

ionic Angular -> IOS/Android

http://ionicframework.com/getting-started/ https://github.com/ShiyangHuang/ionic-babythings   Adding new cordova plugin gives EACCES error #174 https://github.com/diegonetto/generator-ionic/issues/174 Error: spawn EACCES resolved by running... Read More | Share it now!

Fixing npm permissions

https://docs.npmjs.com/getting-started/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 http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x   Apparently, there was a “/Users/myusername/local” folder that... Read More | Share it now!

Grunt wiredep:app no such file or directory bower.json

http://stackoverflow.com/questions/25709324/grunt-wiredepapp-no-such-file-or-directory-bower-json   Running “wiredep:app” (wiredep) task Warning: ENOENT, no such file or directory... Read More | Share it now!