WeDate Controller in Angular