title: How to use ngx permission to protect admin Page in angular?
body: <p>I have admin page Url and i want to protect it but i don't know how to use ngx-permissions in this case as i am new in angular.so can anyone please tell me how can i protect my admin page using angular.
   Here is my redirecting code written below:</p>
  
  <pre><code>if(this.userId === this.adminId){
                this.admin=true;
                this.router.navigate(['/admin']); }
              else{
              this.router.navigate(['/']);
              }
  </code></pre>
  
  <p>I am using AdminId and if it is matched with userId then i am redirecting  the router to admin page.I don't know is it the only way to redirecting?So please tell also how can i navigate the router to admin page securely? Any suggestions will be appreciated.</p>