I had to go with several portions from several tuts along with a hammer to get something into place.
That being said, placement of the code is particularly important.
a majority of the code has to be done at the beginning of the page, and in the head section.
the suggestion for the $location was a good one, but it seemed to fail each time i placed it into the code block.
Here is the primary code block...
<script>
var dashboardApp = angular.module('dashboardApp', []);
dashboardApp.controller('userNameCtrl', function ($scope) {
var vars = [], hash;
var q = document.URL.split('?')[1];
if (q != undefined) {
q = q.split('&');
for (var i = 0; i < q.length; i++) {
hash = q[i].split('=');
vars.push(hash[1]);
vars[hash[0]] = hash[1];
}
}
$scope.firstName = vars['firstName'];
$scope.lastName = vars['lastName'];
});
<body ng-app="dashboardApp">
<span class="username" ng-controller="userNameCtrl">{{firstName}} {{lastName}}</span>
This code block fails with no error messages, but it crashes way out, and blows out the remaining javascript block
var dashboardApp = angular.module('dashboardApp', []);
dashboardApp.controller('userNameCtrl', function ($scope, $location) {
alert("First Name is - " + $location.search()['firstName']);
var vars = [], hash;
var q = document.URL.split('?')[1];
if (q != undefined) {
q = q.split('&');
for (var i = 0; i < q.length; i++) {
hash = q[i].split('=');
vars.push(hash[1]);
vars[hash[0]] = hash[1];
}
}
$scope.firstName = vars['firstName'];
$scope.lastName = vars['lastName'];
});
C#here