How to migrate jquery plugin(date-picker) to angularjs, and the basic workflow