{"id":296059,"date":"2019-12-19T09:00:26","date_gmt":"2019-12-19T09:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296059"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296059","title":{"rendered":"Angular 9, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e?"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481100\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d15\/0b5\/5a8\/d150b55a82a67910d05b9f89b2dabbb6.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043a\u0430 Stephen Fluin \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u043d\u0435 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0438 \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u043e \u0444\u0438\u0447\u0438 \u043d\u043e\u0432\u043e\u0433\u043e Angular, \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043a\u0443\u0447\u0443 \u0432\u0441\u0435 \u0438 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e?<\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043a\u0440\u0443\u0442\u044b\u0445 \u0444\u0438\u0447, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0436\u0434\u0430\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 2 \u0433\u043e\u0434\u0430 \u2014 Angular Ivy, \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0442\u043e Angular 9 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 Ivy \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Angular Ivy \u0435\u0441\u0442\u044c 2 \u0432\u0438\u0434\u0435\u043e \u0441 AngularConnect: \u043f\u0440\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=anphffaCZrQ\" rel=\"nofollow\">Compiler<\/a> \u0438 <a href=\"https:\/\/www.youtube.com\/watch?v=S0o-4yc2n-8\" rel=\"nofollow\">Runtime<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 Angular CLI \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0430\u043f\u0433\u0440\u0435\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0433\u0430\u0439\u0434: <a href=\"https:\/\/next.angular.io\/guide\/updating-to-version-9\" rel=\"nofollow\">https:\/\/next.angular.io\/guide\/updating-to-version-9<\/a><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h3 id=\"template-type-checking\"><strong>Template type-checking<\/strong><\/h3>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u0444\u043b\u0430\u0433 strictTemplates \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a fullTemplateTypeCheck, \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 Ivy. \u0412 \u043f\u043e\u043b\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0431\u0443\u0434\u0435\u0442:<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 \u043a <code>@Input<\/code><\/p>\n<p>  <\/li>\n<li>\n<p>\u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u043a\u0430\u0442\u044c typescript\u2019\u043e\u0432\u044b\u0439 strictNullChecks<\/p>\n<p>  <\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0438\u043f\u043e\u0432 \u043a\u043e\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f generic<\/p>\n<p>  <\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u043d\u0443\u0442\u0440\u0438 *ngFor<\/p>\n<p>  <\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0438\u043f\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 $event \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430\u0445, \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/p>\n<p>  <\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 document.createElement \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0442\u0435\u0433<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0418\u043c\u0435\u044f \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u0433\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0442\u0438\u043f\u043e\u0432 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445, \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 $any() \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u0441\u044f. <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: {{$any(person).addresss.street}}<\/p>\n<p>  <\/p>\n<h3 id=\"contentchildren\">@ContentChildren<\/h3>\n<p>  <\/p>\n<p><strong>ContentChild <\/strong> \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0441 \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">&lt;comp&gt;     &lt;div #bar&gt; &lt;!-- new runtime --&gt;           &lt;div #foo&gt;&lt;\/div&gt;   &lt;!-- matches in old runtime --&gt;     &lt;\/div&gt; &lt;\/comp&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u0443\u0431\u0430\u0442\u044c \u0444\u043b\u0430\u0433 <a href=\"https:\/\/next.angular.io\/api\/core\/Query#descendants\" rel=\"nofollow\">descendants<\/a><\/p>\n<p>  <\/p>\n<p>@<a href=\"https:\/\/next.angular.io\/api\/core\/ContentChildren\" rel=\"nofollow\">ContentChildren<\/a>(&#8216;foo&#8217;, {<a href=\"https:\/\/next.angular.io\/api\/core\/Query#descendants\" rel=\"nofollow\">descendants<\/a>: false}) foos: <a href=\"https:\/\/next.angular.io\/api\/core\/QueryList\" rel=\"nofollow\">QueryList<\/a>&lt;<a href=\"https:\/\/next.angular.io\/api\/core\/ElementRef\" rel=\"nofollow\">ElementRef<\/a>&gt;<\/p>\n<p>  <\/p>\n<h3 id=\"di\"><strong>DI<\/strong><\/h3>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 Angular DI, \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 Angular, \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043a <code>@Directive()<\/code> \u0438\u043b\u0438 <code>@Injectable<\/code> (\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0434\u0435\u043a\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 AOT \u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Inject). \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e CLI \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0430\u043f\u0433\u0440\u0435\u0438\u0434\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0414\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">export class MyService {...} export class MyOtherService {...} export class MyThirdClass {...} export class MyFourthClass {...} export class MyFifthClass {...}  @[NgModule](https:\/\/next.angular.io\/api\/core\/NgModule)({    providers: [      MyService,      {provide: SOME_TOKEN, useClass: MyOtherService},<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">@[Injectable](https:\/\/next.angular.io\/api\/core\/Injectable)()  export class MyService {...}   @[Injectable](https:\/\/next.angular.io\/api\/core\/Injectable)()  export class MyOtherService {...} export class MyThirdClass {...} export class MyFourthClass {...} export class MySixthClass {...}<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{provide: MyToken}<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{provide: MyToken, [useValue](https:\/\/next.angular.io\/api\/core\/ValueSansProvider#useValue): undefined}<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"input\"><strong><a href=\"https:\/\/habr.com\/ru\/users\/input\/\" class=\"user_link\">Input<\/a><\/strong><\/h3>\n<p>  <\/p>\n<p>\u0418\u043d\u043f\u0443\u0442\u044b \u0434\u043b\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, name \u0432 &lt;my-comp name = \u201c\u201d&gt;) \u200b\u200b\u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 view \u0434\u043e change detection(\u0440\u0430\u043d\u0435\u0435 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f change detection).<\/p>\n<p>  <\/p>\n<h3 id=\"esche-nemnogo-interesnogo\">\u0415\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e<\/h3>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u0430\u043a host \u0432\u043d\u0443\u0442\u0440\u0438 <code>@Component<\/code> \u0438 <code>@Directive<\/code>, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u044b (\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u044f\u0432\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438, \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a @HostBinding).<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 HammerJS \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0438\u043c\u043f\u043e\u0440\u0442 HammerModule (\u0440\u0430\u043d\u0435\u0435 \u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e \u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 HammerJS).<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0442\u043e\u043a\u0435\u043d \u0438\u043d\u044c\u0435\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u0444\u043b\u0430\u0433\u043e\u043c <code>@Host<\/code> \u0438\u043b\u0438 <code>@Self<\/code>, \u0442\u043e \u0438\u043d\u0436\u0435\u043a\u0442\u043e\u0440 \u043c\u043e\u0434\u0443\u043b\u044f \u044d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d \u043d\u0435 \u0438\u0449\u0435\u0442 (\u0440\u0430\u043d\u0435\u0435 \u0442\u043e\u043a\u0435\u043d\u044b, \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u044d\u0442\u0438\u043c\u0438 \u0444\u043b\u0430\u0433\u0430\u043c\u0438, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0438\u0441\u043a\u0430\u043b\u0438 \u0431\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u043e\u0434\u0443\u043b\u044f).<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0441 \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 (\u0440\u0430\u043d\u0435\u0435 \u0431\u0440\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440).<\/p>\n<p>  <\/p>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 (\u043d\u043e \u043d\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0430\u043c\u0438), \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e (\u0440\u0430\u043d\u0435\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0441 \u0430\u043b\u0438\u0430\u0441\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043c\u043e\u0433 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432)<\/p>\n<p>  <\/p>\n<p>\u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b (\u0440\u0430\u043d\u0435\u0435 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0438\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \/ \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0441\u0432\u043e\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 <code>@NgModule<\/code>).<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u044f\u043c\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0438\u043d\u043f\u0443\u0442\u043e\u0432 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430\u0445, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433 \u0447\u0435\u0440\u0435\u0437 [class], \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b (\u0440\u0430\u043d\u0435\u0435 \u0431\u0438\u043d\u0434\u0438\u043d\u0433 \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435).<\/p>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c lifecycle hooks \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u043e\u043a\u043e\u0432 \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 lifecycle hooks \u043d\u0430 \u0441\u0430\u043c\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435).<\/p>\n<p>  <\/p>\n<p>\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 injection tokens (\u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a TemplateRef \u0438\u043b\u0438 ViewContainerRef) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 (\u0440\u0430\u043d\u0435\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u0448\u0430\u0440\u0438\u043b\u0438\u0441\u044c, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u043e\u0434). \u042d\u0442\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0442\u0435\u0441\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 ICU \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0441\u0442, \u0442\u0435\u0433\u0438 HTML \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 (\u0440\u0430\u043d\u0435\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u043b\u0438\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u0438 ICU \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439).<\/p>\n<p>  <\/p>\n<h3 id=\"deprecated\">Deprecated<\/h3>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 API, \u0430 \u0442\u043e \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0443\u0436\u0435 \u043f\u043e\u0434 Deprecated, \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043e.<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/next.angular.io\/api\/core\/NgModule#entryComponents\" rel=\"nofollow\">entryComponents<\/a><\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/next.angular.io\/api\/core\/ANALYZE_FOR_ENTRY_COMPONENTS\" rel=\"nofollow\">ANALYZE_FOR_ENTRY_COMPONENTS<\/a><\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/next.angular.io\/api\/core\/ModuleWithProviders\" rel=\"nofollow\">ModuleWithProviders<\/a> without a generic<\/p>\n<p>  <\/li>\n<li>\n<p>esm5 and fesm5 distribution in <a href=\"https:\/\/habr.com\/ru\/users\/angular\/\" class=\"user_link\">angular<\/a>\/* npm packages<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"removals-of-deprecated-apis\">Removals of deprecated APIs<\/h3>\n<p>  <\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/v8.angular.io\/api\/core\/Renderer\" rel=\"nofollow\">Renderer<\/a><\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/v8.angular.io\/api\/core\/RootRenderer\" rel=\"nofollow\">RootRenderer<\/a><\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/v8.angular.io\/api\/core\/RenderComponentType\" rel=\"nofollow\">RenderComponentType<\/a><\/p>\n<p>  <\/li>\n<li>\n<p>DeprecatedI18NPipesModule<\/p>\n<p>  <\/li>\n<li>\n<p>DeprecatedCurrencyPipe<\/p>\n<p>  <\/li>\n<li>\n<p>DeprecatedDatePipe<\/p>\n<p>  <\/li>\n<li>\n<p>DeprecatedDecimalPipe<\/p>\n<p>  <\/li>\n<li>\n<p>DeprecatedPercentPipe<\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/v8.angular.io\/api\/forms\/NgFormSelectorWarning\" rel=\"nofollow\">NgFormSelectorWarning<\/a><\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/next.angular.io\/api\/forms\/NgForm\" rel=\"nofollow\">ngForm<\/a> element selector<\/p>\n<p>  <\/li>\n<li>\n<p>versionedFiles<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0435\u0449\u0435 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c: <a href=\"https:\/\/medium.com\/angular-in-depth\/exciting-time-ahead-be-ready-for-angular-9-b3dbb4078c47\" rel=\"nofollow\">https:\/\/medium.com\/angular-in-depth\/exciting-time-ahead-be-ready-for-angular-9-b3dbb4078c47<\/a><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0430 \u0432\u044b\u043f\u0443\u0441\u043a Angular 9 \u043e\u0436\u0438\u0434\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u0440\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043d\u0441\u043a\u0438\u0445 \u043a\u0430\u043d\u0438\u043a\u0443\u043b =):<\/p>\n<p>  <\/p>\n<blockquote>\n<p>FYI, I made the decision to hold the <a href=\"https:\/\/twitter.com\/hashtag\/Angular?src=hash&amp;ref_src=twsrc%5Etfw\" rel=\"nofollow\">#Angular<\/a> 9.0 release until next year so that all of us and you can take time off over the coming weeks. Happy Holidays &amp; see you in 2020! <\/p>\n<\/blockquote>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \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:\/\/habr.com\/ru\/post\/481100\/\"> https:\/\/habr.com\/ru\/post\/481100\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/481100\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d15\/0b5\/5a8\/d150b55a82a67910d05b9f89b2dabbb6.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043a\u0430 Stephen Fluin \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u043d\u0435 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0438 \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u043e \u0444\u0438\u0447\u0438 \u043d\u043e\u0432\u043e\u0433\u043e Angular, \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043a\u0443\u0447\u0443 \u0432\u0441\u0435 \u0438 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e?<\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043a\u0440\u0443\u0442\u044b\u0445 \u0444\u0438\u0447, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0436\u0434\u0430\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 2 \u0433\u043e\u0434\u0430 \u2014 Angular Ivy, \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0442\u043e Angular 9 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 Ivy \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Angular Ivy \u0435\u0441\u0442\u044c 2 \u0432\u0438\u0434\u0435\u043e \u0441 AngularConnect: \u043f\u0440\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=anphffaCZrQ\" rel=\"nofollow\">Compiler<\/a> \u0438 <a href=\"https:\/\/www.youtube.com\/watch?v=S0o-4yc2n-8\" rel=\"nofollow\">Runtime<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 Angular CLI \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0430\u043f\u0433\u0440\u0435\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0433\u0430\u0439\u0434: <a href=\"https:\/\/next.angular.io\/guide\/updating-to-version-9\" rel=\"nofollow\">https:\/\/next.angular.io\/guide\/updating-to-version-9<\/a><\/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-296059","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296059","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=296059"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296059\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}