Wired up types to the controller instead of a directive.