I should insert a script tag quite long inside a template in AngularJS 2? is it a a good idea to put a script inside a template in AngularJS 2? Where should I put? Basically it is just a script that load a map https://developers.arcgis.com/javascript/jssamples/search_basic.html
Script tags in templates are just removed by Angular. You can dynamically create and add one after the view is created or add it to the entry page. There is already a similar question answered but I don't have the time just yet to look it up.