I have an Angular 2 app hosted on S3. The routing file looks like this.
const APP_ROUTES: Routes = [
{ path: 'checkout', component: CheckoutComponent },
{ path: 'thankyou', component: ThankyouComponent },
{ path: 'lander', component: LanderComponent },
{ path: '', component: LanderComponent }
];
If the user enters www.example.com/checkout
I would like it to take them to the checkout
route on the app. I figured it would just do this, but S3 is giving me the error No Such Key. Is there a way to do this in Angular 2, or is it something I need to set in S3? I think the problem is S3 is going to the example.com
bucket and then expecting a folder checkout
. How would I have it not do that and just the app along with whatever route is specified after the URL?