As far as I know, the button
tag does not have the href
attribute.
Another point, if you want to navigate to the route / registration , you need to change your location
to '/ register' , removing the HTML way. Remember that you are accessing a route, not a physical path to your HTML.
If you use the code below, you should access the '/ register' route as configured in your module.
<a class="btn btn-success" href="#/cadastro')">Cadastra-se</a>
If you want to use a button accessing a method from your controller, it should look similar to the code below:
<button class="btn btn-success" ng-click="go(/cadastro)">Cadastra-se</button>
And in your controller:
$scope.go = function(path){
$location.path(path);
}
The object $ location should be included as a code dependency above. It aims to give you an interface to access the URL of the browser. Any modification made to the URL will reflect on the $location
object, and vice versa.