ngModel and moment are now optional in directive