What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-02 03:24:03
Different views for Desktop and mobile Angular
// Route guards would be a good solution for this purpose. // The MobileGuard would look like this : export class MobileGuard implements CanActivate { constructor(private _router: Router, private _mobileService: MobileService) {} canActivate():... Add solution