Tag Archives: js

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!

Access-Control-Allow-Origin 浏览器js跨域问题

XMLHttpRequest cannot load http://xxxx. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://yyyy’ is therefore not allowed... Read More | Share it now!