How to pass parameters to an angular application?

24 views
Skip to first unread message

Reza Razavipour

unread,
Aug 23, 2017, 6:25:12 PM8/23/17
to Angular and AngularJS discussion
I have an application that calls an HTTP server for data.
This is a parameter that will be passed in to my application.

My application is http://localhost:3000
I want to start it as http://localhost:3000?server=URL

Is that possible? If so how do I access the get parameters in my app?

Lucas Lacroix

unread,
Aug 23, 2017, 7:11:31 PM8/23/17
to Angular and AngularJS discussion

I usually do this by having an API hosted on localhost that returns the configuration.


--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
Lucas Lacroix
Computer Scientist
Advanced Technology Division, MEDITECH

Reza Razavipour

unread,
Aug 24, 2017, 11:09:14 AM8/24/17
to Angular and AngularJS discussion
that is my current implementation but I need to more dynamically modifiable than that, thus looking at get parameters.

I am looking at Location from Angular/common and it looks very promising.
Reply all
Reply to author
Forward
0 new messages