Roque Orts Roque Orts - 1 year ago 124
AngularJS Question

Get parameters url angular when run app

Is there a way to get params in AngularJs 1.4 when the app runs, when the params come from get method? ex:
I mean just here in my app.js file:

var myApplication = angular.module('App', [ui.router,...])
.run(function ($rootScope,$http,....){
var param = // I wish to read the param here

If not is possible, how can I get it using a controller?

Answer Source

Good morning, Using $ returns an object with the paramenters.Thanks!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download