using angular controller definitions