Hey there! I'm currently working on index.html
Here's the code snippet from before:
<body ng-app="MainController">
<div class="page page-base {{ pageClass }}" ng-view>
</div>
</div>
Then, I made changes by assigning values to $scope.errorMsg in registerController like this:
<body ng-app="myApp">
<div class="page page-base {{ pageClass }}" ng-view>
<div ng-controller="MainController" ng-click="doClick($event)"></div>
<div ng-controller="RegisterController"></div>
</div>
</div>
While console.logging in the controller shows the value correctly, it doesn't display on the error.html page. Here's the relevant code:
$scope.errorMsg = data.message;
$location.path("/reg/error");
I'm fairly new to Angular and would appreciate any insights or additional info needed to troubleshoot this issue.