0
My structure is like this:
var app = angular.module('MainApp',[
'ngRoute',
'mainAppControllers'
]);
app.config(['$routeProvider',
function($routeProvider){
$routeProvider.
when('/tutorial', {
templateUrl: 'partials/tutorial.html',
controller: 'TutorialCtrl'
}).
when('/menu', {
templateUrl: 'partials/menu.html',
controller: 'MenuCtrl'
}).
when('/termo', {
templateUrl: 'partials/termo_de_uso.html',
controller: 'TermoCtrl'
}).
otherwise({
redirectTo : '/tutorial'
});
}
]);
However I want when it is the first time you open the app it directs to a page and if it is the second time you open directs to another page.
How can I do that?
Your goal is to create something as if it were several stages?
– André Ribeiro
Hi @Andréribeiro my idea is the first time you open the app it takes to a tutorial screen and after that the second time you open it take to another screen. The tutorial screen would only appear the first time you run the app
– Claudia Mardegan