title: Secure admin panel with AngularJS
body: <p>I'd like to build a web application with AngularJS (client) and a RESTful API (server) using PHP + MySQL, just for studying purpose. The application must have admin panel, protected by login. </p>
  
  <p>I'm using ui-router to prevent unauthorized users to access the panel, but as far as I know, every code on client side is not safe.</p>
  
  <p>What if a malicious user modify the code to grant access to the panel without login? I know that the server data and code are protected, but not the HTML partials (layout is exposed), different from a common PHP application, where the views are "protected" in the server side. Should I be worried about it?</p>