How and where to add VisitorAPI.js , at.js, AppMeasurement.js in angular for implementing server side
I am trying to implement server-side target sdk in angular similar to this.
https://github.com/adobe/target-nodejs-sdk-samples/tree/master/ecid-analytics-atjs-integration
But here in this example it has been given under template index.tpl. The same way it is not working when it is implemented in angular. How or where should i add these snippets and get the serverstate value. Currently it is added in index.html of angular project. Have tried adding in index.html as well as in specific component. It is not working and still the target content is getting changed for every refresh.
There is no proper documentation or example to use target sdk server side to implement in angular.