Home:ALL Converter>Using Angular2 to add UI to an existing site

Using Angular2 to add UI to an existing site

Ask Time:2016-11-29T20:32:22         Author:Richard Barraclough

Json Formatter

By adding data- attributes to the markup of an existing site I can embed the metadata required to write client-side code to add features to the existing pages, e.g., bring up a detail or editor box, or show related info.

It seems straightforward enough to approach this using jQuery with KnockoutJS and Bootstrap for a responsive and good looking UI.

Could I use Angular? What I don't understand is that in all the Angular2 examples the whole site is an Angular2 SPA whereas I want to add some new UI components to an existing site.

If I could use Angular then how would I approach it? How would the Angular components get bootstrapped in the page?

Author:Richard Barraclough,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40866011/using-angular2-to-add-ui-to-an-existing-site
yy