{"id":275519,"date":"2016-03-04T17:13:02","date_gmt":"2016-03-04T14:13:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275519"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275519","title":{"rendered":"\u041f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u043e\u0443\u0442\u044b Angular 2 \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 Laravel 5"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f3e\/cf8\/2ed\/f3ecf82edddf467f871eddfdfd164d29.png\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"https:\/\/habrahabr.ru\/post\/278523\/\">\u041f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432 Angular 2 \u2014 \u0442\u0435\u043e\u0440\u0438\u044f \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430<\/a>&quot; \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u0440\u043e\u0443\u0442\u044b Angular 2 \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 Laravel 5.<\/p>\n<p>  <strong><em>\u0418\u0434\u0435\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f<\/em><\/strong><\/p>\n<ul>\n<li>\u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>resources\/views\/backend<\/code> \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0440\u043e\u0443\u0442\u043e\u0432 Angular 2. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u043e\u0443\u0442\u0430 Angular 2, \u0440\u043e\u0443\u0442\u0435\u0440 Laravel 5 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435;<\/li>\n<li>\u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 Angular 2 \u0440\u043e\u0443\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 <code>@RouteConfig<\/code> \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043f\u0438\u044e \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Laravel;<\/li>\n<li>\u0432\u0441\u0435 \u0440\u043e\u0443\u0442\u044b Angular 2, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u0438\u0434 \u0432\u0438\u0434\u0430 <code>\/templates\/SomeComponent.main<\/code>, \u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c Laravel 5 \u043f\u043e \u043f\u0443\u0442\u0438 \u0432\u0438\u0434\u0430 <code>resources\/views\/frontend\/SomeComponent\/main.blade.php<\/code><a name=\"habracut\"><\/a><\/li>\n<\/ul>\n<p>  <strong><em>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c<\/em><\/strong><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f, \u0440\u0430\u0437\u043e\u0431\u044c\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>resources\/views<\/code> \u043d\u0430 2 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438: <\/p>\n<ul>\n<li><code>backend<\/code> \u2014 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Laravel 5 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e;<\/li>\n<li><code>frontend<\/code> (\u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <code>frontend<\/code>, \u043d\u043e \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <code>templates<\/code>) \u2014 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 Angular 2.<\/li>\n<\/ul>\n<p>  <strong>1) Front-end<\/strong><\/p>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 root-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <code>app.component.ts<\/code>, \u0430 \u0442\u0430\u043a \u0436\u0435 2 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430: <code>components\/MainComponent.ts<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0438 <code>components\/EditComponent.ts<\/code>. <\/p>\n<p>  \u041c\u044b \u0445\u043e\u0442\u0438\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 <code>@RouteConfig<\/code> 2 \u0440\u043e\u0443\u0442\u0430: \u043e\u0434\u0438\u043d &#8216;\/&#8217; \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>Home<\/code>, \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043d\u0430 <code>MainComponent<\/code>, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 &#8216;\/edit&#8217; \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>Edit<\/code>, \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043d\u0430 <code>EditComponent<\/code>. <\/p>\n<pre><code class=\"javascript\">\/\/app.component.ts @RouteConfig([     {         path: '\/',         name: 'Home,         component: MainComponent,         useAsDefault: true     },     {         path: '\/edit',         name: 'Edit',         component: EditComponent     } ]) @Component({     'directives': [ROUTER_DIRECTIVES],     'selector': 'app',     'template': '&lt;router-outlet&gt;&lt;\/router-outlet&gt;' }) export class AppComponent {     constructor () {} }<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u044b:<\/p>\n<pre><code class=\"javascript\">\/\/components\/MainComponent.ts @Component({     'selector': 'state-template',     'templateUrl': '\/templates\/MainComponent.main' }) export class MainComponent { ... }  \/\/components\/EditComponent.ts @Component({     'selector': 'state-template',     'templateUrl': '\/templates\/EditComponent.main' }) export class EditComponent { ... }<\/code><\/pre>\n<p>  <strong>2) Back-end<\/strong><\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Laravel 5 \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0440\u043e\u0443\u0442\u044b Angular 2. \u0412\u0441\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0440\u043e\u0443\u0442\u044b \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 <code>AngularRoutesController<\/code>.<\/p>\n<pre><code class=\"php\">\/\/routes.php Route::get('\/', [     'uses' =&gt; 'MyApp\\AngularRoutesController@index',     'as' =&gt; 'ngHome' ]);  Route::get('\/edit', [     'uses' =&gt; 'MyApp\\AngularRoutesController@index',     'as' =&gt; 'ngEdit' ]);<\/code><\/pre>\n<p>  \u0412 <code>AngularRoutesController<\/code> \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430, \u0434\u043b\u044f Angular 2:<\/p>\n<pre><code class=\"php\">public function index() {     return view('backend.content'); }<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <code>views\/backend\/content.blade.php<\/code> \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0442\u0435\u0433, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f Angular 2 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043d\u0430\u0441 \u044d\u0442\u043e <code>app<\/code>.<\/p>\n<pre><code class=\"php\">@extends('backend.layout')  @section('backend.content')     &lt;app&gt;         @include('backend.loading')     &lt;\/app&gt;      @include('backend.scripts-import') @stop<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0440\u043e\u0443\u0442\u043e\u0432 Angular 2, \u0432\u0435\u0434\u0443\u0449\u0438\u0445 \u043a \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0430\u043c, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0449\u0435 1 Laravel 5 \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <code>AngularTemplatesController<\/code>:<\/p>\n<pre><code class=\"php\">\/\/routes.php Route::get('\/templates\/{template}', [     'uses' =&gt; 'MyApp\\AngularTemplatesController@index',     'as' =&gt; 'ngTemplates' ]);<\/code><\/pre>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 <code>AngularTemplatesController<\/code> \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a <code>$template<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0443\u0442\u0438 \u043a \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c, \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0439 \u043f\u0430\u043f\u043a\u0438 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438 Angular 2 \u2014 <code>frontend<\/code>.<\/p>\n<pre><code class=\"php\">public function index($template) {     $templatePath = 'frontend.' . $template;      if (!view()-&gt;exists($templatePath)) {         throw new NotFoundHttpException();     }      return view($templatePath); }<\/code><\/pre>\n<p>  <strong><em>\u0418\u0442\u043e\u0433<\/em><\/strong><\/p>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u0432\u0441\u0435 Angular 2 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u0432\u0438\u0434\u0430 <code>\/templates\/SomeComponent.main<\/code> \u0431\u0443\u0434\u0443\u0442 \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 \u0432\u0438\u0434\u0430 <code>resources\/views\/frontend\/SomeComponent\/main.blade.php<\/code>. \u041c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440 Blade \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 Angular 2.<\/p>\n<p>  <strong><em>\u041d\u044e\u0430\u043d\u0441\u044b<\/em><\/strong><\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0435 Blade \u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 Angular 2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438 <code>{{ ... }}<\/code>, \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a Angular 2, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b <code>@<\/code>.<br \/>  \u042d\u0442\u043e\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0443 Blade \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0437 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 Angular 2.<\/p>\n<pre><code class=\"html\">&lt;div&gt;{{ bladeVariable }}&lt;\/div&gt; &lt;li *ngFor=&quot;#file of files&quot; class=&quot;list-group-item&quot;&gt;     @{{ file.name }} &lt;\/li&gt;<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/sanex3339\/laravel-5-angular-2-example\">\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a> \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c.         <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/278599\/\"> https:\/\/habrahabr.ru\/post\/278599\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f3e\/cf8\/2ed\/f3ecf82edddf467f871eddfdfd164d29.png\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"https:\/\/habrahabr.ru\/post\/278523\/\">\u041f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432 Angular 2 \u2014 \u0442\u0435\u043e\u0440\u0438\u044f \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430<\/a>&quot; \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u0440\u043e\u0443\u0442\u044b Angular 2 \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 Laravel 5.<\/p>\n<p>  <strong><em>\u0418\u0434\u0435\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f<\/em><\/strong><\/p>\n<ul>\n<li>\u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>resources\/views\/backend<\/code> \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0440\u043e\u0443\u0442\u043e\u0432 Angular 2. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u043e\u0443\u0442\u0430 Angular 2, \u0440\u043e\u0443\u0442\u0435\u0440 Laravel 5 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435;<\/li>\n<li>\u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 Angular 2 \u0440\u043e\u0443\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 <code>@RouteConfig<\/code> \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043f\u0438\u044e \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Laravel;<\/li>\n<li>\u0432\u0441\u0435 \u0440\u043e\u0443\u0442\u044b Angular 2, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u0438\u0434 \u0432\u0438\u0434\u0430 <code>\/templates\/SomeComponent.main<\/code>, \u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c Laravel 5 \u043f\u043e \u043f\u0443\u0442\u0438 \u0432\u0438\u0434\u0430 <code>resources\/views\/frontend\/SomeComponent\/main.blade.php<\/code><br \/>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-275519","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275519"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275519\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}