in your HTML while forming href bind these values as routeParams
href= "
http://purebus.com/app_bus_available.php?origin={{origin.name}}&destination={{destination.name}}
 
<http://www.google.com/url?q=http%3A%2F%2Fpurebus.com%2Fapp_bus_available.php%3Forigin%3D%257B%257Borigin.name%257D%257D%26destination%3D%257B%257Bdestination.name%257D%257D&sa=D&sntz=1&usg=AFQjCNEOy6r0X3D-RNMtto6EbRHQErOlNA>
" 
in controller access these values via routeParams
var origin=$routeParams.origin;
var dest=$routeParams.destination;

to send this values to another controllers u need to store this values in 
$rootScope else u can broadcast it.


On Tuesday, September 1, 2015 at 10:15:05 PM UTC+5:30, Dilip Win wrote:
>
> I have input values in {{origin.name}} , {{destination.name}} . I want to 
> use this variable values in a url like this "
> http://purebus.com/app_bus_available.php?origin={{origin.name}}&destination={{destination.name}}
> " 
>
> but it is not working , Also how to pass this url to another controller 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to