Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to pass variables from one page to another with AngularJS

<a ng-model="parameter" ng-init="parameter = 'parameterA'" href="pageA.html?parameter=parameterA">Page A1</a> 

//pageA.html:

   var query = window.location.search.substring(1);
   var parts = query.split("=");
   var parameter = parts[1];
 
PREVIOUS NEXT
Tagged: #How #pass #variables #page #AngularJS
ADD COMMENT
Topic
Name
1+9 =