@VishalKumar if you have multiple items with same id then at first you should make changes in html and make ids unique, if you want to attach event handler on multiple elements then consider using class instead of id
means for login I use a api which returns a response and based on this response users will be redirected to subdomain and i need that response on subdomain as well
However all users have a single login page on login.app.com and once they fill in the username and password they will be redirected to their on subdoamin
i wonder if someone can help me here let me explain my requirement I am working on a angular app which is a SASS product means mutliple vendors have their app on their subdomains like A and B have their app on a.app.com and b.app.com but both apps are managed with single folder but with htaccess and some other routing methods However all users have a single login page on login.app.com and once they fill in the username and password they will be redirected to their on subdoamin all is working fine but only part not working is passing the response after login to new subdomain
I am developing an app with angular 2 and it working fine with ng build or aot build. only issue I am facing is load time and file size. as a newbie I have couple of question 1.ng build or AOT build is the method to create app or there is any method to compile it on runtime ? 2.Its an dynamic app going to be live on a domain/server and will use REST api to show data and perform functionalities so it will be done with build only or there are other practices I need to follow. 3.App is gong to be very huge so are there any points I need to take care while developing it ?