Issue with switch button inside switch statement, only functioning correctly outside of the switch statement. See below for my code:
<div ng-controller="LoginController as LC">
<div ng-switch on="view.name">
<div ng-switch-default>
<input type="email" required>
<input type="password" required>
<button type="submit" class="form-submit">Login</button>
<a href="#" ng-click="view.name='forgotpassword'">Forgot Your Password</a>
</div>
<div ng-switch-when="forgotpassword">
<input type="email" equired>
<button type="submit" class="form-submit">Send</button>
</div>
</div>
</div>
.controller('LoginController', function ($scope, ModalService) {
$scope.view = {
name: ''
};
});