title: Change profile picture using angular js ng-click
body: <p>I'm still newbie with angular js
  I get difficulties to change profile picture</p>
  
  <pre><code>&lt;img src="images/avatar.jpg" ng-click="changeProfilePicture()"&gt;
  </code></pre>
  
  <p>How can I change my profile picture using ng-click,
  all i know is when we click then there will be a pop up, then we choose our image, then the image will be converted to base 64 string to be saved in database, then the base 64 string will be converted to image again, then the profile picture will be changed.
  How to do that?</p>