Moved from jquery to angular framework