yuu-eguci / angular-experiment

Want to practice angular-cli + SPA + MPA + i18n + import different external css files in each component.
0 stars 0 forks source link

Page base: Page2 #4

Open yuu-eguci opened 4 years ago

yuu-eguci commented 4 years ago

Description

issue

yuu-eguci commented 4 years ago

@Avalonalan

I have questions!

I want to implement Page2 not in index.html but in another html. Oh, if it isn't appropriate, tell me so.

issue

Avalonalan commented 4 years ago

@yuu-eguci

  1. Yes, it’s.

  2. 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.

yuu-eguci commented 4 years ago

@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?

issue

Avalonalan commented 4 years ago

@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.

yuu-eguci commented 4 years ago

@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?

Avalonalan commented 4 years ago

@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.

yuu-eguci commented 4 years ago

@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!

issue