0
Well, not found in any other post, if there is srry :) at last,
I have the following config
myApp.config(function($routeProvider) {
    $routeProvider
        // route for the index page
        .when('/index', {
            templateUrl : 'pages/index.html',
            controller  : 'mainController'
        })
        // route for the home page
        .when('/home', {
            templateUrl : 'pages/home.html',
            controller  : 'aboutController'
        })
}); 
only that he wanted to work with different views, for different users, on the same route.
For example, I have two users, the X user who is Adm and the Y user who is an ordinary user, so when they both access the '/index' route they will have the same view.
But when accessing the route '/home' I wanted a different template to be shown for each one. How can I do this?
I accept all kinds of help. VALEEU!
Look, it made a lot of sense to me. kkkk Thank you!
– Lucas Fantacucci