Angularjs controller function with parameters example