I would suggest using ng-directive AngularJS to accomplish this. Of course, to make your application angular compatible you should make certain modifications to the existing file structure and architecture design.
Refer the official documentation to know more