Open yuu-eguci opened 4 years ago
@Avalonalan
I have questions!
./src/index.html
entry point?I want to implement Page2 not in index.html but in another html. Oh, if it isn't appropriate, tell me so.
@yuu-eguci
Yes, it’s.
Nope. Basically, I think there is only one entry point because that’s how SPA works. BTW, what my company does only has one entry point.
@Avalonalan
Thank you! Then I will stop thinking of multiple entry points this time and will make the project with only one entry point.
By the way, this is another related question though. Do you make web applications which have sign in system with SPA? Have you created SPA apps containing pages that allow users only who signs in to view them?
I mean that, how do people hide pages from people not signed in?
@yuu-eguci I still have no time to create this but I am sure that it can be done by SPA because my company's product is it. I think that you maybe have to make SPA system after logging and the logging page is just like a usual page.
@Avalonalan OK thank you!
So your guess is that logging page is not included in the SPA system. That's why I mentioned about 'multiple entry points' above. You said "logging page is just like a usual page," that means logging page works on another entry point from SPA system, right?
@yuu-eguci Yap, that’s one way. You also can approach it by making logging page be at app-root and the page after logging is the main component of logging page. Then, make other pages be sub components of main component. This way should be The way for SPA.
@Avalonalan I'm so glad to here the information of "this way should be The way for SPA." Thank you Alan! I imagined the structure like below according to your explanation. Is this correct?
Although I won't implement sign in system this time in the angular-experiment(this repository), I am asking you so much. Sorry!
Description