proper angular controller definition