Hello,
I am having an issue, as you can see in the following code I am using a 
routing to put an HTML template when the URL is '/User/Register'. The 
problem is that this is not working. The template is not shown. If I take 
of the '/User' the code works fine and the template is shown

*HTML*: 
<ul class="nav navbar-nav navbar-right">
<li>
          <a href="*/User*/Login">Login</a>   //If I take off the '/User' 
the code works
          </li>
          <li>
                    <a href="*/User*/Register">Register</a>   //If I take 
off the '/User' the code works
          </li>
</ul>

*Angular Routing*:
angularApp.config(['$routeProvider','$locationProvider', 
    function ($routeProvider, $locationProvider) {
        $locationProvider.html5Mode({
            enabled: true,
            requireBase: false
        });
        $routeProvider.when('*/User*/Register',  //If I take off the 
'/User' the code works fine
            {
                templateUrl: 'templates/newUserTemplate.html',
                controller: 'userController'
            });     
    }]);

Thanks!

Regards.-

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to