{"id":269242,"date":"2015-11-29T19:50:01","date_gmt":"2015-11-29T16:50:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269242"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269242","title":{"rendered":"Angular Light 0.11"},"content":{"rendered":"<p>       <a href=\"http:\/\/angularlight.org\/\">Angular Light<\/a> \u2014 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 MV(C\/VM) \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0438\u0434\u0435\u044f\u0445 Angular.js \u0438 Knockout.js, \u0438 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 Angular.js<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9a5\/2ba\/442\/9a52ba44253f42bea22eff79139648b1.png\"\/><\/p>\n<p>  \u0412\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f <b>Angular Light 0.11<\/b>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 Angular.js, \u043a\u0430\u043a \u0438 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Angular Light, Scope \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 (Change Detector) \u0438 \u0432 \u043d\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f. \u0422\u0430\u043a\u043e\u0435 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u043e \u0440\u044f\u0434 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c: \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 \u043a\u0430\u043a ng-if\/ng-include\/ng-repeat \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 <abbr title=\"Change Detector\">CD<\/abbr> \u0441 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u043e\u043c \u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u2014 \u044d\u0442\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0430\u0441\u0445\u043e\u0434 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b, \u043d\u043e, \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"html\">&lt;div&gt;     &lt;input type=&quot;text&quot; ng-model=&quot;value&quot; \/&gt; {{value}}     &lt;div ng-if=&quot;flag&quot;&gt;         &lt;input type=&quot;text&quot; ng-model=&quot;value&quot; \/&gt; {{value}}         &lt;button ng-click=&quot;value=5&quot;&gt;set&lt;\/button&gt;     &lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  ng-click=\u00abvalue=5\u00bb \u0438 ng-model=\u00abvalue\u00bb \u0438\u0437\u043c\u0435\u043d\u044f\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e CD, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043e\u0437\u0434\u0430\u043b ng-if, \u0430 \u043d\u0435 \u0442\u0443 \u0447\u0442\u043e \u0432\u044b\u0448\u0435. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u044b Angular.js \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438: \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0440\u043d\u0435 Scope (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0438\u043c\u0435\u043d\u0430 \u0441 \u00ab\u0442\u043e\u0447\u043a\u043e\u0439\u00bb) \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c controllerAs.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 Angular 2, \u043e\u043d\u0438 \u0443\u0447\u043b\u0438 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f ChangeDetector (\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0442 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<p>  \u0412 Angular Light 0.11 \u0442\u0430\u043a \u0436\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435: \u0431\u044b\u0432\u0448\u044b\u0439 Scope \u0431\u044b\u043b \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 ChangeDetector \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u2014 \u044d\u0442\u043e \u0434\u0430\u043b\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b (\u043a\u0430\u043a \u0432\u044b\u0448\u0435) \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"html\">&lt;div&gt;     &lt;input type=&quot;text&quot; al-value=&quot;value&quot;&gt; {{value}}     &lt;div al-if=&quot;flag&quot;&gt;                 &lt;input type=&quot;text&quot; al-value=&quot;value&quot;&gt; {{value}}         &lt;button al-click=&quot;value=5&quot;&gt;set&lt;\/button&gt;     &lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <a href=\"http:\/\/jsfiddle.net\/lega911\/uycv37q0\/\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 jsfiddle<\/a><\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0438 \u0441 al-repeat, al-click=\u00abactive=current\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043d\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 Scope.  <\/p>\n<pre><code class=\"html\">&lt;div&gt;     {{active.name}}     &lt;div al-repeat=&quot;current in list&quot;&gt;         &lt;div al-click=&quot;active=current&quot;&gt;{{current.name}}&lt;\/div&gt;     &lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <a href=\"http:\/\/jsfiddle.net\/lega911\/x04dpk28\/\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 jsfiddle<\/a><\/p>\n<p>  \u0422.\u043a. al-repeat \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043b\u043e\u043a\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430: current, $index, $last \u0438 \u0442.\u043f. \u0438 \u043e\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043a\u0430\u043a \u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0446\u0438\u043a\u043b\u0430\u043c\u0438), \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0440\u044e\u043a, \u0430 \u0432 Angular 2 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u043d\u0435 \u0434\u0430\u0440\u043e\u043c \u043e\u043d \u0432\u0435\u0441\u0438\u0442 \u043e\u043a\u043e\u043b\u043e 1.7 \u041c\u0431).<\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432\u043e \u0432 Angular Light: \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b. \u0415\u0441\u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0441 Angular.js $stateful \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e Angular.js \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448 \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c $digest \u0446\u0438\u043a\u043b\u0435, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u00bb \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b \u0435\u0433\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c $digest \u0446\u0438\u043a\u043b\u0435, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a Angular Light \u043d\u0435 \u00ab\u0434\u0435\u0440\u0433\u0430\u0435\u0442\u00bb \u0432\u0430\u0448 \u0444\u0438\u043b\u044c\u0442\u0440 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u00bb \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430), \u043f\u0440\u0438\u043c\u0435\u0440: {{user.companyId | loadCompanyName}}<\/p>\n<p>  <b>al-repeat<\/b> \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0443, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ng-repeat, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443.<\/p>\n<p>  \u0423 \u0434\u0435\u0440\u0438\u043a\u0442\u0438\u0432 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u00ab\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c\u00bb, \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0432 100 \u0440\u0430\u0437, \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u0441\u044f \u043e dirty-checking. \u0422\u0430\u043a \u0436\u0435 \u00ab\u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\u043d\u044b\u0435\u00bb \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0447\u0435\u0440\u0435\u0437 Object.freeze \u0434\u0430\u044e\u0442 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 dirty-checking \u0438 \u0432 \u043f\u043b\u0430\u043d\u0430\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e immutable.js<\/p>\n<p>  \u0423\u0441\u043a\u043e\u0440\u0435\u043d \u0431\u0438\u043d\u0434\u0438\u043d\u0433, \u0442\u0435\u043f\u0435\u0440\u044c Angular Light \u0441\u0442\u0430\u043b \u0432 2 \u0440\u0430\u0437\u0430 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c Angular.js (\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445), <a href=\"http:\/\/lega911.github.io\/js-table-perfs\/\">\u0442\u0435\u0441\u0442<\/a>, \u0447\u0442\u043e \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u2014 \u043e\u043d \u0441\u0442\u0430\u043b \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c Basis.js, \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445.<\/p>\n<p>  \u041d\u0435 \u0437\u043d\u0430\u044e \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043d \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d, \u043d\u043e <b>al-select<\/b> \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0443, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ng-options, al-select \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 al-repeat \u2014 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043e\u0434\u043d\u043e\u043c select \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e al-repeat \u0446\u0438\u043a\u043b\u043e\u0432, \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 (\u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435) \u043f\u0443\u043d\u043a\u0442\u044b, <a href=\"http:\/\/jsfiddle.net\/lega911\/ac0L7paa\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a>.<\/p>\n<p>  <b>alight.bootstrap<\/b> \u0431\u044b\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"html\">&lt;div id=&quot;app&quot;&gt;     &lt;button al-click=&quot;click()&quot;&gt;click&lt;\/button&gt;     &lt;input type=&quot;text&quot; al-value=&quot;name&quot; \/&gt; Hello {{name}}! &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code>alight.bootstrap('#app', {     name: 'user',     click: function() {         this.name = 'world'     } }) <\/code><\/pre>\n<p>  <a href=\"http:\/\/jsfiddle.net\/lega911\/nwf5uvj9\/\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 jsfiddle<\/a><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u043d\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439. \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Angular Light 0.10 \u0438 \u0441\u0442\u0430\u0440\u0448\u0435, \u0435\u0441\u0442\u044c <a href=\"http:\/\/angular-light.readthedocs.org\/en\/latest\/migration_to11.html\">\u0441\u043f\u0438\u0441\u043e\u043a<\/a> \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u0439.<\/p>\n<p>  <b>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438:<\/b>  <\/p>\n<ul>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/250589\/\">Angular Light + Object.observe<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/229691\/\">Angular 0.6, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/212301\/\">\u00ab\u041b\u0435\u043d\u0438\u0432\u043e\u0435\u00bb \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 \u0438 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/209108\/\">\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 HTML<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/208282\/\">\u041d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432<\/a><\/li>\n<\/ul>\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=\"http:\/\/habrahabr.ru\/post\/271925\/\"> http:\/\/habrahabr.ru\/post\/271925\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/angularlight.org\/\">Angular Light<\/a> \u2014 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 MV(C\/VM) \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0438\u0434\u0435\u044f\u0445 Angular.js \u0438 Knockout.js, \u0438 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 Angular.js<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9a5\/2ba\/442\/9a52ba44253f42bea22eff79139648b1.png\"\/><\/p>\n<p>  \u0412\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f <b>Angular Light 0.11<\/b>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.  <\/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-269242","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269242","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=269242"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269242\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}