A flowchart based upon AngularJS