フロントエンドルーティングとバックエンドルーティングの間にちょっと混乱します。私はAngular JSとLaravelをプロジェクトの1つとして使用しています。負荷分散:フロントエンドルーティングはサーバーの負荷を軽減しますか?
ルーティング時に負荷分散を軽減できるアドバイスや方法をご希望です。
ルーティングを使用するための最良の方法です。
フロントエンドルーティングまたはバックエンドルーティング。
私は知っているので、私は知っているが、私はたくさんのグーグルグーグルが満足のいく答えを得ることができませんでした。だからこそ私はこの質問を投稿しています。
Route::post('users/{email_id}/{name}/{image_url} ', '[email protected]');
私は、ルーティングのためにこれを使用するか、
このコードは
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { WelcomeComponent } from './home/welcome.component';
/* Feature Modules */
import { ProductModule } from './products/product.module';
@NgModule({
imports: [
BrowserModule,
HttpModule,
RouterModule.forRoot([
{ path: 'welcome', component: WelcomeComponent },
{ path: '', redirectTo: 'welcome', pathMatch: 'full' },
{ path: '**', redirectTo: 'welcome', pathMatch: 'full' }
]),
ProductModule
],
declarations: [
AppComponent,
WelcomeComponent
],
bootstrap: [ AppComponent ]
})
export class AppModule { }
は、私は上記のいずれかを使用する必要があり、app.module.tsファイルであるべきですか?
ヘルプは素晴らしいでしょう。
ありがとうございます。