AngularJs : Create task text box and priority dropdown list and sort priority