/*
* Phone mask on inputs
* */
$rootScope.mask = function() {
$(document).ready(function() {
$('input[type="tel"]').mask('+7 (999) 999-99-99');
});
}();
{
path: 'profile', component: ProfileView, canActivate: [AuthGuard],
children: [
{path: 'suppliers', component: ProfileSuppliersView},
{path: 'main', component: ProfileMainView},
{path: 'bonus', component: ProfileBonusView,
children: [
{path: 'main', component: BonusMainView},
{path: 'refs', component: BonusRefsView},
{path: 'earning', component: BonusEarningView}
]
},
{path: 'account', component: ProfileAccountView},
{path: 'pref', component: ProfilePrefView}
]
},