Moved template to templateUrl to allow overriding