I'm sorry for my bad english.
Still new to Ionic I create a simple application.
I would like to start the application with a pop-up but I don't know how to do it.
When you start a new application with Ionic, you can see at the end of app.js
"$urlRouterProvider.otherwise('/app/accueil');"
This is to begin the application on the page accueil, but I want to start with "login()"
for exemple.
Someone can help me?
Thanks
I have used Ionic app and created a login page with angular router. Check my git code. https://github.com/gopinathshiva/ionic-chat-app/blob/master/www/js/app.js . Hope this helps
I have find a solution.
I solved my problem with this : http://codepen.io/calendee/pen/oCLJF
.factory('AuthService', function($rootScope) {
var loggedIn=false;
return {
checkLogin : function() {
$rootScope.$broadcast('loggedIn', { 'loggedIn' : loggedIn });
return loggedIn;
},
login : function() {
loggedIn = true;
$rootScope.$broadcast('loggedIn', { 'loggedIn' : loggedIn });
}
}
})
Thanks for your attention and help!