How I can use one state for all urls?
For example:
.state('home', {
url:'/',
template:'home.html',
controller:'homeCtrl'
})
.state('user', {
url:'/user',
template:'user.html',
controller:'userCtrl'
})
.state('master', {
url:'*',
controller:function() {
console.log('hello!');
}
})
I think in * for cath all urls, but when I try with this, nothing happend.
My idea:
When you open /user this trigger first master and after it, trigger userCtrl.
Thanks!