{"id":214293,"date":"2014-03-01T15:47:03","date_gmt":"2014-03-01T11:47:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=214293"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=214293","title":{"rendered":"<span class=\"post_title\">AngularJS vs IML<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/f03\/86f\/6b3\/f0386f6b3430391091a890c7da6ca049.png\" alt=\"image\"\/><\/p>\n<p>  <b>disclaimer<\/b>: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0435 \u201c\u0445\u043e\u043b\u0438\u0432\u0430\u0440\u0430\u201d, \u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u0437\u043e\u0440 \u0437\u0430\u0434\u0430\u0447, \u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u043e\u0434\u043d\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c. \u042f \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0441\u044c \u0437\u043d\u0430\u0442\u043e\u043a\u043e\u043c \u0432\u0441\u0435\u0445 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0435\u0439 angularJs, \u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 10 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e\u0431\u0437\u043e\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0445 \u0436\u0435 \u0441\u0430\u043c\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 IML.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c ?<\/h4>\n<p>  <\/p>\n<ul>\n<li><b>Controller <\/b><\/li>\n<li><b>Inheritance<\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 IML<\/i>  <\/li>\n<li><b>Accessing server<\/b> <\/li>\n<li><b>Push data <\/b><\/li>\n<li><b>Submit form<\/b><\/li>\n<li><b>Template<\/b> <\/li>\n<li><b>Promises<\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 IML \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0430 \u0442\u0430\u043a \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430.<\/i>  <\/li>\n<\/ul>\n<p>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b \u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u043c\u044b\u0441\u043b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 asp.net mvc \u043f\u043e\u043b\u044c\u0437\u0443 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435 \u0432\u0438\u0436\u0443.<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0434\u0430\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 asp.net mvc<\/i><\/p>\n<h4>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c ?<\/h4>\n<p>  \u041c\u0435\u0442\u043e\u0434\u0438\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 AngularJS ( View \u0438 Js ) \u0438 IML ( \u0442\u043e\u043b\u044c\u043a\u043e View ) \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430, \u0434\u0430\u043b\u0435\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e \u0447\u0435\u043c \u0436\u0435 IML \u043b\u0443\u0447\u0448\u0435. \u042f \u0431\u0443\u0434\u0443 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u044e\u0441\u044b, \u043d\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b IML \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c.<\/p>\n<h5>Controller<\/h5>\n<p>  <\/p>\n<h6>Angular JS View<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div ng-controller=&quot;angularController&quot;&gt; &lt;button ng-click=&quot;sayHello()&quot;&gt;Say&lt;\/button&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular JS<\/h6>\n<p>  <\/p>\n<pre><code class=\"javascript\">app.controller('angualrController', function ($scope) {   $scope.sayHello = function(){       alert('Hello')     }  }); <\/code><\/pre>\n<p>  <\/p>\n<h6>IML<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@(Html.When(JqueryBind.Click)       .Do()       .Direct()       .OnSuccess(dsl =&gt; dsl.Utilities.Window.Alert(&quot;Hello&quot;))       .AsHtmlAttributes()       .ToButton(&quot;Say&quot;)) <\/code><\/pre>\n<h5>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435 :<\/h5>\n<p>  <\/p>\n<ul>\n<li><b>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0432\u043c\u0435\u0441\u0442\u0435<\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043c\u043d\u043e\u0433\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0440\u043d\u044b\u043c, \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043b\u043e\u0433\u0438\u043a\u0430 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0435\u0440\u0441\u0442\u0430\u043b\u044c\u0449\u0438\u043a\u0430\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 asp.net mvc, C# \u043a\u043e\u0434 \u0432\u043e View ( cshtml ) \u043d\u0435\u043e\u0442\u044a\u0435\u043c\u043b\u0435\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u044e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043b\u043e\u0433\u0438\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438.<\/i>  <\/li>\n<li><b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Initilesence<\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b AngularJs \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c html, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u0438\u043b\u0438 \u0430\u0432\u0442\u043e-\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0430 IML \u044d\u0442\u043e C# \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.<\/i>   <\/li>\n<li><b>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0444\u043b\u0430\u0433\u0438<\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f When(JqueryBind.Click | JqueryBind.Focus)<\/i>  <\/li>\n<li><b>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u044f ( Prevent Default, Stop Propagation) <\/b><br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: AngularJS \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u0438\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043c\u0435\u0442\u043e\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043d\u043e IML \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u0442\u043e \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u043e\u0431\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u044b<\/i>  <\/li>\n<\/ul>\n<h5>Accessing Server<\/h5>\n<p>  <\/p>\n<h6>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">public ActionResult Get(GetProductByCodeQuery query) {  List  vms = dispatcher.Query(query);  return IncJson(vms); \/\/ for AngularJs need use Json with AllowGet } <\/code><\/pre>\n<p>  <i> \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430, \u043a\u0430\u043a \u0434\u043b\u044f AngularJS, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f IML<\/i>  <\/p>\n<h6>Angular Html<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div ng-conroller=&quot;productController&quot;&gt;  @Html.TextBoxFor(r =&gt; r.Code)  &lt;label&gt;{{model.Name}}&lt;\/label&gt;  &lt;button&gt;Get name&lt;\/button&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular Js<\/h6>\n<p>  <\/p>\n<pre><code class=\"javascript\">kitchen.controller('productController', function ($scope, $http) {   $scope.get = function(){     $http.get({                 url:'product\/get',                 params:{Code:$('[Name=&quot;Code&quot;]').val()}               })           .success(function(data) {                $scope.Name = data.Name            });  } }); <\/code><\/pre>\n<p>  <\/p>\n<h6>IML<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@{ var labelId = Guid.NewGuid().ToString(); } @Html.TextBoxFor(r=&gt;r.Code) @(Html.When(JqueryBind.Click)   .Do()   .AjaxGet(Url.Action(&quot;Product&quot;,&quot;Get&quot;,new {                        Code = Html.Selector().Name(r=&gt;r.Code)                       })   .OnSuccess(dsl =&gt; dsl.WithId(labelId).Core().Insert.For(r=&gt;r.Name).Text())   .AsHtmlAttributes()   .ToButton(&quot;Get name&quot;)) <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 url, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 Routes \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u043e \u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Url.Action(\u201cProduct\u201d,\u201dGet\u201d,new GetProductQuery() { Code = Html.Selector().Name(r=&gt;r.Code) })<\/i><\/p>\n<h5>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435:<\/h5>\n<p>  <\/p>\n<ul>\n<li>\u0422\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 \u044d\u0442\u0430\u043f\u0430\u0445<br \/> \n<ul>\n<li><b>Url<\/b> \u2013 \u0430\u0434\u0440\u0435\u0441 \u0432 AngularJs \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c route \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 ( \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c ) \u0432 Action \u0438\u0437 \u043a\u043e\u0434\u0430.<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e AngularJs \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c JavaScript \u043a\u043e\u0434 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0444\u0430\u0439\u043b, \u0442\u043e \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 js \u043a\u043e\u0434\u0430.<\/i>  <\/li>\n<li><b>Query <\/b>\u2013 AngularJs \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Url \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0438 go to declaration<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441 IML, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u043f\u043e\u043b\u0435 Name \u0438\u043b\u0438 Code \u0432 GetProductQuery, \u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0440\u0430\u0437\u044f\u0442\u0441\u044f \u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u043d\u043e \u0434\u043b\u044f AngularJs \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c {{model.Name}} \u0438 $(\u2018[Name=\u00abcode\u00bb]\u2018) \u043d\u0430 \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/i>  <\/li>\n<li><b>Selector <\/b>\u2013 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 IML \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 Dom ( hash, cookies, js variable and etc ) \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/li>\n<\/ul>\n<p>  <\/li>\n<li>MVD <\/li>\n<\/ul>\n<p>  \u0412 Incoding Framework \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 Controller \u0438 Action \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 url \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c MVD  <\/p>\n<pre><code class=\"cs\">Url.Dispatcher().Query(new GetProductQuery() {Code = Html.Selector().Name(r=&gt;r.Code)}).AsJson() <\/code><\/pre>\n<h5>Push data<\/h5>\n<p>  <\/p>\n<h6>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">public ActionResult Add(AddCommand input) {  dispatcher.Push(input); return IncJson(); \/\/ for AngularJS need use Json() } <\/code><\/pre>\n<p>  <i> \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430, \u043a\u0430\u043a \u0434\u043b\u044f AngularJS, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f IML<\/i><\/p>\n<h6>Angular View<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div ng-controller=&quot;productController&quot;&gt;   @Html.TextBoxFor(r =&gt; r.Name)    @Html.CheckboxFor(r =&gt; r.IsGood)   &lt;button ng-click=&quot;add&quot;&gt; Add &lt;\/button&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular JS<\/h6>\n<p>  <\/p>\n<pre><code class=\"javascript\">kitchen.controller('productController', function ($scope, $http) {  $scope.add = function(){     $http({        url: 'product\/Add',        method: &quot;POST&quot;,        data: {               Name : $('[name=&quot;Name&quot;]').val(),              IsGood : $('name=&quot;IsGood&quot;]').is(':checked')              }          })       .success(function(data) { alert('success') }); }); <\/code><\/pre>\n<p>  <\/p>\n<h6>IML<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@Html.TextBoxFor(r=&gt;r.Name) @Html.CheckboxFor(r=&gt;r.IsGood) @(Html.When(JqueryBind.Click)       .Do()       .AjaxPost(Url.Action(&quot;Product&quot;,&quot;Add&quot;,new {                                                  Name = Html.Selector().Name(r=&gt;r.Name),                                                  IsGood = Html.Selector().Name(r=&gt;r.IsGood)                                                }))       .OnSuccess(dsl =&gt; dsl.Utilities.Window.Alert(&quot;Success&quot;))       .AsHtmlAttributes()       .ToButton(&quot;Add&quot;)) <\/code><\/pre>\n<h5>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435:<\/h5>\n<p>  <\/p>\n<ul>\n<li>MVD<br \/>  \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438 Query, \u0432 Incoding Framework \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c push \u0431\u0435\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Action<br \/> \n<pre><code class=\"cs\">Url.Disaptcher().Push( new {                                    Name = Html.Selector().Name(r=&gt;r.Name),                                    IsGood = Html.Selector().Name(r=&gt;r.IsGood)                             }) <\/code><\/pre>\n<p>  <\/li>\n<li>Selector \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 checkbox \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c is(\u2018:checked\u2019), \u043d\u043e \u0432 IML \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c<\/i>  <\/li>\n<\/ul>\n<h5>Submit Form<\/h5>\n<p>  <\/p>\n<h6>Angular View<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div ng-controller=&quot;productController&quot;&gt;    &lt;form name=&quot;AddForm&quot;&gt;     @Html.TextBoxFor(r =&gt; r.Name)     @Html.CheckboxFor(r =&gt; r.IsGood)      &lt;input type=&quot;submit&quot; value=&quot;save&quot;  ng-submit=&quot;submit&quot; \/&gt;   &lt;\/form&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular JS<\/h6>\n<p>  <\/p>\n<pre><code class=\"javascript\">controller('productController', function ($scope, $http) {  $scope.submit = function(){     $http({        url: 'product\/Add',        method: &quot;POST&quot;,        data: angular.toJson($scope.addForm)         }).success(function(data) { alert('success') }); }); <\/code><\/pre>\n<p>  <\/p>\n<h6>IML<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@using(Html.When(JqueryBind.Submit)            .DoWithPreventDefault()            .Submit()            .OnSuccess(dsl =&gt; dsl.Utilities.Window.Alert(&quot;Success&quot;))            .AsHtmlAttributes()            .ToBeginForm(Url.Action(&quot;Product&quot;,&quot;Add&quot;)))  {     @Html.TextBoxFor(r=&gt;r.Name)     @Html.CheckboxFor(r=&gt;r.IsGood)     &lt;input type=&quot;submit&quot; value=&quot;add&quot;&gt;  } <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435:<\/h5>\n<p>  <\/p>\n<ul>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: angularJs \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0444\u043e\u0440\u043c\u043e\u0439 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c ajax \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 Url, Type, Data<\/i>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h4>Template<\/h4>\n<p>  <\/p>\n<h6>\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">public ActionResult Fetch() {    var vms = new List()      {       new PersonVm(){ Last= &quot;Vasy&quot;, First = &quot;Smith&quot;, Middle = &quot;Junior&quot;},       new PersonVm(){ Last= &quot;Vlad&quot;, First = &quot;Smith&quot;, Middle = &quot;Mr&quot;},      };   return IncJson(vms); \/\/ for angular need use Json with AllowGet } <\/code><\/pre>\n<p>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430, \u043a\u0430\u043a \u0434\u043b\u044f AngularJS, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f IML<\/i>  <\/p>\n<h6>Angular Template<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script id=&quot;person.html&quot; type=&quot;text\/ng-template&quot;&gt; {{person.last}}, {{person.first}} {{person.middle}} &lt;\/script&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular View<\/h6>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div ng-controller=&quot;productAddForm&quot;&gt;   &lt;div ng-repear=&quot;person in persons&quot; ng-template=&quot;person.html&quot;&gt;      &lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>Angular JS<\/h6>\n<p>  <\/p>\n<pre><code class=\"javascript\">app.controller('personController', function ($scope,$http) {    $scope.refresh= function(){       $http.get('person\/fetch', function(data){                            $scope.Persons= data        });    }  }); <\/code><\/pre>\n<p>  <\/p>\n<h6>IML Template<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@{     var tmplId = Guid.NewGuid().ToString();     using (var template = Html.Incoding().Template(tmplId))     {       using (var each = template.ForEach())       {  @each.For(r=&gt;r.First),@each.For(r=&gt;r.Middle),@each.For(r=&gt;r.Last) }     } } <\/code><\/pre>\n<p>  <\/p>\n<h6>IML View<\/h6>\n<p>  <\/p>\n<pre><code class=\"cs\">@(Html.When(JqueryBind.InitIncoding)  .Do()  .AjaxGet(Url.Action(&quot;Personal&quot;,&quot;Fetch&quot;))  .OnSuccess(dsl =&gt; dsl.Self().Core().Insert.WithTemplate(tmplId.ToId()).Html())  .AsHtmlAttributes()  .ToDiv()) <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435 :<\/h5>\n<ul>\n<li>\u041e\u043f\u044f\u0442\u044c \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: Incoding template \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u043d\u043e \u044d\u0442\u043e \u043e\u043a\u0443\u043f\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435<\/i>  <\/li>\n<li>\u041e\u0434\u0438\u043d template \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/li>\n<li>\u0417\u0430\u043c\u0435\u043d\u0430 template engine<\/li>\n<li>\u041f\u043e\u0438\u0441\u043a template \u043f\u043e Selector, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 ( ajax, cookies and etc )<\/li>\n<li>Cache<br \/>  AngularJs \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Cache, \u043d\u043e \u0441 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u043c\u0438<br \/> \n<ul>\n<li>\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e template \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e<br \/> \n<pre><code class=\"javascript\">myApp.run(function($templateCache) {   $templateCache.put('templateId.html', 'This is the content of the template'); }); <\/code><\/pre>\n<p>  <\/li>\n<li>\u041d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0441\u0441\u0438\u044f\u043c\u0438<br \/>  <i>\u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: Incoding Framework \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043f\u0440\u0435-\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e template \u0432 local storage, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a template \u0431\u0440\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0438\u0437 local storage. <\/i>  <\/li>\n<\/ul>\n<p>  <\/li>\n<\/ul>\n<h5>\u0412 \u0447\u0435\u043c \u0436\u0435 \u043e\u0431\u0449\u0438\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e:<\/h5>\n<p>  <\/p>\n<ul>\n<li>\u0414\u0430, \u0434\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430 \u044d\u0442\u043e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u2013 \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0437\u0430 \u0441\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f C# \u043d\u0430 \u0432\u0441\u0435\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 ( template, client scenario and etc ) \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/li>\n<li>\u041e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u0434\u043b\u044f backend \u0438 frontend \u2014 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u043d\u0430\u044e\u0449\u0438\u0439 C# \u043c\u043e\u0436\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043e\u0441\u0432\u043e\u0438\u0442\u044c IML \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 Command \u0438 Query \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/li>\n<\/ul>\n<p>  <b>\u0412\u044b\u0432\u043e\u0434<\/b>: AngularJs \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 mvc \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u0447\u0442\u043e \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a asp.net mvc \u0438\u043c\u0435\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e mvc, \u0433\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u0435 \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u044f\u0437\u044b\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/214293\/\"> http:\/\/habrahabr.ru\/post\/214293\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/f03\/86f\/6b3\/f0386f6b3430391091a890c7da6ca049.png\" alt=\"image\"\/><\/p>\n<p>  <b>disclaimer<\/b>: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0435 \u201c\u0445\u043e\u043b\u0438\u0432\u0430\u0440\u0430\u201d, \u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u0437\u043e\u0440 \u0437\u0430\u0434\u0430\u0447, \u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u043e\u0434\u043d\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c. \u042f \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0441\u044c \u0437\u043d\u0430\u0442\u043e\u043a\u043e\u043c \u0432\u0441\u0435\u0445 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0435\u0439 angularJs, \u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 10 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e\u0431\u0437\u043e\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0445 \u0436\u0435 \u0441\u0430\u043c\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 IML.  <\/p>\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-214293","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214293","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=214293"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214293\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}