프런트 엔드 라우팅과 백 엔드 라우팅 사이에 약간 혼란 스럽습니다. 저는 Angular JS와 Laravel을 프로젝트 중 하나에 사용하고 있습니다.로드 균형 조정 : 프런트 엔드 라우팅이 서버로드를 줄입니까?
라우팅 할 때로드 밸런싱을 줄일 수있는 방법이나 조언을 얻고 싶습니다.
그래서 라우팅을 사용하는 가장 좋은 방법입니다.
프런트 엔드 라우팅 또는 백엔드 라우팅.
나는 SO가 제안을위한 것이 아니라는 것을 알고 있지만, 나는 많이 봤지만 만족스러운 답을 얻을 수 없었다. 그래서이 질문을 게시하고 있습니다.
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 파일에해야 하는가?
도움이 될 것입니다.
감사합니다.