{"id":271669,"date":"2016-01-06T13:28:02","date_gmt":"2016-01-06T10:28:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271669"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271669","title":{"rendered":"\u041e\u043f\u044b\u0442 Angular + Typescript + Offline SPA \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u0434"},"content":{"rendered":"<p>       <img decoding=\"async\" align=\"left\" src=\"http:\/\/nyccamp.org\/sites\/default\/files\/AngularTypescript%20copy.jpg\" alt=\"image\" width=\"384\"\/>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u043e\u0431 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043d\u0430 Angular + Typescript \u043f\u043e \u043f\u0440\u043e\u0448\u0435\u0441\u0442\u0432\u0438\u0438 \u0433\u043e\u0434\u0430. \u042d\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043d\u043e\u0432\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430, \u0438 \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u0435\u0451 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u0436\u0434\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0431 React \u0438\u043b\u0438 Angular 2.0, \u043d\u043e \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0438 \u044d\u0442\u043e\u0442 \u043e\u043f\u044b\u0442 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/h4>\n<p>  \u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u044d\u0442\u043e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 10+\u043b\u0435\u0442 (Web, ASP.Net, C# MSSQL). \u041d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043f\u043e\u0447\u0435\u0442\u043d\u044b\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u0438 codebase 1M+ LoC, \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439, \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0438 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432. <\/p>\n<p>  \u041d\u043e \u0442\u0443\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e UI \u043d\u0430 SPA (Angular) \u0447\u0442\u043e \u0431\u044b \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u2014 \u0422\u0430\u043a \u0438 \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0433\u043e\u0434 \u0442\u043e\u043c\u0443 \u043d\u0430\u0437\u0430\u0434.<\/p>\n<p>  \u0414\u043e \u044d\u0442\u043e\u0433\u043e \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u043d\u0430 backend C# \u0447\u0430\u0441\u0442\u0438, \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438, SQL-performance, SQL-deadlocks, \u043e\u0447\u0435\u0440\u0435\u0434\u044f\u043c\u0438 \u0438 \u0442\u043f.<\/p>\n<p>  \u0421 Javascript \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 pet-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438 \u043e\u0431\u044c\u0435\u043c \u043a\u043e\u0434\u0430 \u0431\u044b\u043b \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041e\u0434\u0438\u043d \u0441\u0432\u043e\u0439 pet-\u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043d\u0435 \u0434\u0430\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0441 javascript \u043d\u0430 java (GWT \u0442\u0440\u0430\u0441\u043b\u044f\u0442\u043e\u0440) \u043f\u043e\u0441\u043b\u0435 15k LoC! \u0418\u0437 \u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c. \u0422\u044f\u0436\u0435\u043b\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043b \u0441\u0435\u0431\u044f (\u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f Angular). <\/p>\n<p>  \u041f\u043e\u0442\u043e\u043c\u0443, \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c javascript \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 &gt; 20k LoC \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0431\u0435\u0440\u0435\u0447\u044c \u0435\u0433\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0441\u044c, \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430\u0448\u0438\u0445 SPA \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 Backbone, Angular \u044f \u0432 \u044d\u0442\u043e\u043c \u0435\u0449\u0435 \u0440\u0430\u0437 \u0443\u0431\u0435\u0434\u0438\u043b\u0441\u044f \u2014 \u043e\u043d\u0438 \u0438\u043c\u0435\u043b\u0438 \u043f\u043e 20k-35k LoC, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u044b\u043b\u0430, \u043d\u043e \u043d\u0435 \u0447\u0435\u0442\u043a\u0430\u044f, \u043b\u044e\u0431\u043e\u0439 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0432 \u043d\u0438\u0445 \u0443\u0436\u0435 \u0431\u044b\u043b \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d.<\/p>\n<h4>\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>  \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0436\u0435 \u043d\u043e\u0432\u043e\u0433\u043e Angular \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a 2-4 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043a \u0442\u0435\u043a\u0443\u0449\u0438\u043c.<\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0432 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \u0442\u0430\u043a\u0436\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 HTML5 Offline \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u0440\u0438 \u0447\u0435\u043c \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 REST \u043c\u044b \u0435\u0449\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043d\u0430 IndexedDB).<\/p>\n<p>  \u0421\u0442\u0430\u0440\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446-\u0434\u0432\u0430. \u041f\u043e\u0442\u043e\u043c\u0443 \u044f \u0438\u043c\u0435\u043b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b javascript \u0438 \u0432\u0445\u043e\u0434 \u0432 \u043d\u043e\u0432\u0443\u044e \u0434\u043b\u044f \u043c\u0435\u043d\u044f javascript \u2014 Angular \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n<h4>\u041f\u0440\u0438\u043d\u044f\u0442\u0438\u0435 \u0420\u0435\u0448\u0435\u043d\u0438\u0439<\/h4>\n<p>  <b>Angular<\/b><\/p>\n<p>  \u0414\u0430\u0436\u0435 \u043d\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u043b\u0441\u044f. \u0423 \u043d\u0430\u0441 \u0431\u044b\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441 1-2 \u0433\u043e\u0434\u0430\u043c\u0438 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430\u0441\u0442\u0430\u0438\u0432\u0430\u043b \u043d\u0430 \u043d\u0435\u043c. \u041c\u043d\u0435 \u043e\u043d \u0442\u043e\u0436\u0435 \u0438\u043c\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u043f\u043e\u0441\u043b\u0435 \u043c\u043e\u0433\u043e \u0434\u0430\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0441 \u0447\u0438\u0441\u0442\u044b\u043c jQuery, GWT UI, \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u043c\u0438 UI Toolkits \u2014 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0433\u043b\u043e\u0442\u043a\u043e\u043c \u0441\u0432\u0435\u0436\u0435\u0433\u043e \u0432\u043e\u0437\u0434\u0443\u0445\u0430. <br \/>  Knockout, \u0438 \u0441\u0442\u0430\u0440\u044b\u0439-\u0434\u043e\u0431\u0440\u044b\u0439 Backbone \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043e\u0431\u044c\u0435\u043a\u0442\u0430\u0445\/\u043c\u0435\u0442\u043e\u0434\u0430\u0445. \u042f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0435\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u0445 \u00ab\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439\u00bb \u0441\u043f\u043e\u043b\u043d\u0430 \u0434\u043e \u044d\u0442\u043e\u0433\u043e. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Plain Javascript Objects\/Arrays \u0432 Angular \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u043b\u0438 \u043b\u044e\u0431\u044b\u0435 performance \u0432\u044b\u0433\u043e\u0434\u044b Knockout, Backbone.<\/p>\n<p>  \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0443 Angular \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u2014 \u0441\u0432\u043e\u0439 DI \u0438 overdesign.<\/p>\n<p>  Service, Module \u2014 \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 (\u043f\u043e\u0434\u043e\u0431\u043d\u043e \u043a\u043b\u0430\u0441\u0441\u0443), Factory, Controller \u2014 \u044d\u0442\u043e \u0441\u0430\u0445\u0430\u0440 \u0432\u043e\u043a\u0440\u0443\u0433 Service. \u041c\u043d\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Angular DI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a \u0442\u043e\u043c\u0443-\u0436\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0431\u0438\u0432\u0430\u043b \u0441 \u0442\u043e\u043b\u043a\u0443 WebStorm 9.<\/p>\n<p>  <b>Typescript<\/b><\/p>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u0434\u043e\u043b\u0433\u043e \u043e\u0431\u0434\u0443\u043c\u044b\u0432\u0430\u043b, \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u043b \u043f\u0435\u0440\u0435\u0434 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u041a\u0441\u0442\u0430\u0442\u0438, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0443 (\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0435) \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0430 \u043d\u0435 \u043d\u0430 Javascript \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a \u0442\u0440\u0435\u043d\u0434\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u043c \u043d\u0430 \u0433\u043e\u0434\u0430. <\/p>\n<p>  \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043e\u0441\u044b\u043b \u2014 Typescript \u044d\u0442\u043e \u041d\u0415 \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a, \u044d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Javascript (\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a LESS \u2014 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 CSS).<br \/>  \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u0430\u0447\u0435\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0443\u0436\u0435\u043d \u043d\u0430\u043c Compile-time Type Checking (\u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 C#, Java, C++):<\/p>\n<ul>\n<li>\u0414\u0435\u043b\u0430\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0434\u0430, \u0438\u043d\u0430\u0447\u0435 \u2014 \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0442\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u044b\u0445 Unit-test \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0438 \u043b\u043e\u043c\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/li>\n<li>\u0414\u0435\u043b\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u0435\u0440\u0436 \u043a\u043e\u0434\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u043c<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 IDE \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043b\u0443\u0447\u0448\u0435 \u2014 \u0430 \u044d\u0442\u043e \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0412 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0448\u044c auto-complite \u043f\u043e\u0441\u043b\u0435 &quot;.&quot; \u0438 \u0432\u0438\u0434\u0438\u0448\u044c 5-10 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0430 \u043d\u0435 100 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445. Find-usage \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432 IDE \u043f\u043e\u0438\u0441\u043a \u043f\u043e user.id \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u0435\u0442 \u0441 product.id<\/li>\n<li>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0442\u044f\u0436\u0435\u043b\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, IDE, grunt build \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442 \u043e\u0431 \u043f\u0440\u043e\u0441\u0442\u044b\u0445, \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043a\u0430\u0445<\/li>\n<li>\u0423\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0440\u0435\u0432\u044c\u044e\/\u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430<\/li>\n<li>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 (\u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u0443 &gt; 10k LOC)<\/li>\n<\/ul>\n<p>  \u0421 \u043c\u043e\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f, killer-\u0444\u0438\u0447\u0430 Typescript \u2014 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 GWT (\u0442\u0430\u043c \u0442\u044b \u043f\u0438\u0448\u0435\u0448\u044c \u043d\u0430 java \u0432 \u0441\u0432\u043e\u0435\u0439 IDE, \u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e \u0432 javascript), \u0442\u043e \u043c\u0435\u043d\u044f \u0443\u0442\u043e\u043c\u043b\u044f\u043b\u043e \u0447\u0442\u043e \u0412\u0421\u0415, \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c \u0442\u0438\u043f\u043e\u043c, \u044d\u0442\u043e \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u043e \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0442\u0438\u043f\u0430\u043c\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0438\u0445 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u0432 \u043c\u043e\u0434\u0435\u043b\u044c, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0442\u043f).<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, C#, Java, \u0421++ \u0442\u043e\u0436\u0435 \u0434\u0432\u0438\u0436\u0443\u0442\u0441\u044f \u043a \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 var, auto, dynamic. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c strict-Javascript \u043a\u043e\u0434 \u0432 Typescript \u0444\u0430\u0439\u043b \u2014 \u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0438\u043f\u043e\u0432 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u00abany\u00bb, \u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0435:<\/p>\n<pre><code class=\"javascript\">var a=&lt;any&gt;0; \/\/\u0432\u0430\u0440\u0438\u0430\u043d\u0442 1 var a:any=0; \/\/\u0432\u0430\u0440\u0438\u0430\u043d\u0442 2 a().some().thing()[15].else(); <\/code><\/pre>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Generic-types (\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a C# \u0438 Java), \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 ES6 Arrow functions \u0432\u0441\u0435 \u043f\u0440\u0435\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0440\u043e\u043c\u0438\u0441\u0430\u043c\u0438 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u0430 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430, \u0438 \u043e\u043d\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 this: <\/p>\n<pre><code class=\"java\">function loadUsers():ng.IPromise&lt;Array&lt;User&gt;&gt;{ \/*some*\/} function loadBirthDates():ng.IPromise&lt;Array&lt;Date&gt;&gt;{     return loadUsers().then(users=&gt;users.map(u=&gt;u.birthDate)); } <\/code><\/pre>\n<p>  \u0422\u0443\u0442 IDE \u0447\u0435\u0442\u043a\u043e \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e u \u2014 \u0438\u043c\u0435\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 User, \u0438 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u0435\u0441\u043b\u0438 birthDate \u0442\u0430\u043c \u043d\u0435\u0442 \u0438\u043b\u0438 \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0442\u0438\u043f Date.<\/p>\n<p>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 ES6 \u0441lass \u0432 Typescript.<\/p>\n<p>  \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 ES6 \u0441lass \u2014 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u0430\u0445\u0430\u0440 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 babeljs, Typescript \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 prototype). \u041d\u043e \u0442\u0443\u0442 \u0434\u0435\u043b\u043e \u043d\u0435 \u0432 runtime, \u0442\u0443\u0442 \u0434\u0435\u043b\u043e \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 IDE \u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043c\u044b\u0441\u043b\u044f\u0449\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 OOP, \u0430 \u043d\u0435 \u0432 Functional \u0441\u0442\u0438\u043b\u0435. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 1:<\/p>\n<pre><code class=\"javascript\">function a(){  function b(){     function \u0441(){        function d(){}     }   } } <\/code><\/pre>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u0441\u0442\u0438\u043b\u0435 OOP, \u0433\u0434\u0435 \u0442\u0443\u0442 \u043c\u043e\u0434\u0443\u043b\u044c, \u0433\u0434\u0435 \u043a\u043b\u0430\u0441\u0441, \u0430 \u0433\u0434\u0435 \u043c\u0435\u0442\u043e\u0434\u0435 \u043a\u043b\u0430\u0441\u0441\u0430? \u0410 \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441 \u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e private \u043c\u0435\u0442\u043e\u0434 b \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441? \u041c\u043e\u0436\u0435\u0442, \u043f\u0440\u0438\u043c\u0435\u0440 \u0438 \u043d\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0439, \u043d\u043e \u043f\u043e\u0440\u043e\u044e \u0442\u0430\u043a \u0442\u043e\u0436\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u044f\u044e\u0442 \u043a\u043e\u0434, \u043a\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 prototype. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 2:<\/p>\n<pre><code class=\"javascript\">module a{    class b{      c(){         var d =&gt;{}       }    } } <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0443\u0440\u043e\u0432\u043d\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 OOP \u0443\u0436\u0435 \u044f\u0441\u043d\u044b \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439. \u041f\u0440\u0438\u0447\u0435\u043c, \u043e\u043d\u0438 \u044f\u0441\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u043d\u043e \u0438 IDE. \u0418 IDE \u0443\u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0442\u043e.<br \/>  \u0427\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u0440\u0430\u0437\u044b \u0432\u044b\u0448\u0435, \u0445\u043e\u0442\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0432\u043e \u0432\u0441\u0435 \u0442\u0435-\u0436\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 GWT, Typescript \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e-\u0444\u0430\u0439\u043b\u043e\u0432\u043e \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 (\u0432 WebStorm \u2014 \u043f\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0444\u0430\u0439\u043b\u0430). \u042f \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e source-maps \u0432 Chrome \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 Typescript \u0444\u0430\u0439\u043b\u0430 \u2014 c\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 JS \u0444\u0430\u0439\u043b \u043c\u0430\u043b\u043e \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432 \u043d\u0430\u0448\u0435\u0439 Backend \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0432\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u0421# \u0438 OOP. \u0418 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Typescript \u2014 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0440\u043e\u0442\u0430\u0446\u0438\u044e \u0438\u0445 \u043d\u0430 Frontend (\u0437\u043d\u0430\u043d\u0438\u044f CSS \u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e, \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c \u0443 \u043d\u0430\u0441 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435).<\/p>\n<h4>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ul>\n<li>framework<\/li>\n<li>business\n<ul>\n<li>security\n<ul>\n<li>dto\n<ul>\n<li>UserDto.ts<\/li>\n<li>GroupDto.ts<\/li>\n<\/ul>\n<\/li>\n<li>dal\n<ul>\n<li>SecurityAdapter.ts<\/li>\n<li>SecurityOfflineAdapter.ts<\/li>\n<\/ul>\n<\/li>\n<li>SecurityFacade.ts<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>ui\n<ul>\n<li>security\n<ul>\n<li>SecurityController.ts<\/li>\n<li>Security.html<\/li>\n<li>SecurityMobile.html<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>routing\n<ul>\n<li>routingStates.ts<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>  framework \u00ab\u0432\u0438\u0434\u0438\u0442\u00bb \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, business \u00ab\u0432\u0438\u0434\u0438\u0442\u00bb framework \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, ui \u0438 routing \u0432\u0438\u0434\u044f\u0442 \u0432\u0441\u0451.<\/p>\n<p>  \u042d\u0442\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u043d\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e, \u043e\u043d\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u043d\u0430\u0448 ASP.Net \u043f\u0440\u043e\u0435\u043a\u0442 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u0441\u0435 \u0432 backend-\u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u041c\u043e\u0436\u0435\u0442 \u0442\u044f\u043d\u0443\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0438\u0437 backend \u0432 SPA \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c, \u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438 \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f Typescript \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 (\u0445\u043e\u0442\u044f \u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b): import(s) \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 _references.d.ts \u0444\u0430\u0439\u043b\u044b. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 IDE, \u0434\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043d\u0430 \u0447\u0442\u043e \u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u0435\u0441\u043b\u0438 IDE \u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c.<\/p>\n<p>  Ui \u0441\u043b\u043e\u0439 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a business \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 *Facade \u043a\u043b\u0430\u0441\u0441\u044b.<\/p>\n<p>  \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 Facade \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043f\u0440\u043e\u043c\u0438\u0441\u044b. Facade \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0437\u043e\u0432\u044b Adapters.<\/p>\n<pre><code class=\"java\">\/\/\/&lt;reference path=&quot;..\/_references.d.ts&quot;\/&gt; module business.security { \texport class SecurityFacade {                 loadUsers():ng.IPromise&lt;Array&lt;UserDto&gt;&gt;{}                 loadGroups():ng.IPromise&lt;Array&lt;GroupDto&gt;&gt;{}                 renameUser(userId:string, name:string):ng.IPromise&lt;void&gt;{}         } } <\/code><\/pre>\n<p>  Offline \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 SecurityFacade.loadUsers \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0430\u043a: \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c SecurityAdapter.loadUsers \u2014 \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u043c\u0438\u0441 \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u2014 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0438\u0437 IndexedDb SecurityOffineAdapter.loadUsers, \u0435\u0441\u043b\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0442\u043e \u043c\u044b \u043a\u0435\u0448\u0438\u0440\u0443\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 IndexedDb \u2014 UserOffineAdapter.saveUsers. \u0415\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0435\u0442\u0430\u043b\u0435\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u043b\u0438\u043c\u0438\u0442 Indexed DB \u0438 \u0442\u043f), \u043d\u043e \u0433\u0440\u0443\u0431\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a.<\/p>\n<pre><code class=\"java\">\/\/\/&lt;reference path=&quot;..\/_references.d.ts&quot;\/&gt; module business.security { \texport class SecurityFacade {                 loadUsers():ng.IPromise&lt;Array&lt;UserDto&gt;&gt;{ \t\t\tSecurityAdapter.loadUsers().then(data =&gt; { \t\t\t\tSecurityOffineAdapter.saveUsers(data); \t\t\t\treturn data; \t\t\t}).catch(ex =&gt; { \t\t\t\tif (isOffline()) { return SecurityOffineAdapter.loadUsers();} \t\t\t\tthrow ex \t\t\t});                 }         } } <\/code><\/pre>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Angular DI \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e. \u0414\u0430\u0436\u0435 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 Angular \u043d\u0430 \u0431\u0438\u0437\u043d\u0435\u0441\u0435, \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0438\u043f\u044b promice (\u043d\u0430\u043f\u0440 jQuery) \u0438 \u0440\u0430\u0437\u043d\u043e\u0448\u043e\u0441\u0442\u043d\u044b\u0435 onSuccess\/onError \u0432 Angular promice. $q \u043a\u0430\u043a \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u043d\u0435 Angular DI:<\/p>\n<pre><code class=\"javascript\">var $q = angular.element(document.body).injector().get(&quot;$q&quot;); <\/code><\/pre>\n<p>  \u041b\u044e\u0431\u044b\u0435 \u043e\u0431\u044c\u0435\u043a\u0442\u044b \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u0432 Json \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f Adapter-\u043e\u043c. Typescript \u0432\u0430\u043c \u0432 \u044d\u0442\u043e\u043c \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442. \u041f\u043e\u0442\u043e\u043c\u0443 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c Dto \u043a\u043b\u0430\u0441\u0441\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c copyAndVerify \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438 \u043e\u0447\u0438\u0449\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0451 \u0443 \u043f\u043e\u0434-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u00abupgrade\u00bb \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u044b\u0448\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0438 \u0441\u043c\u0435\u043d\u0430 \u0442\u0438\u043f\u0430). \u0412\u044b\u0437\u043e\u0432 copyAndVerify \u0434\u0435\u043b\u0430\u0435\u0442 Adapter \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u2014 Angular \u043d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0430 \u043e\u0431\u044c\u0435\u043a\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0434\u043e \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 Angular \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u043c\u043e\u0433\u0443\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442.<\/p>\n<p>  UI: SecurityController \u2014 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 Angular, \u0430 \u0442\u0430\u043a-\u0436\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 view.<\/p>\n<pre><code class=\"java\">\/\/\/&lt;reference path=&quot;..\/_references.d.ts&quot;\/&gt; module ui.security { \timport SecurityFacade =  business.shared.SecurityFacade;  \texport class SecurityController {                 users:Array&lt;User&gt;;                 constructor(public $scope:IScope, public $window:ng.IWindowService) {                             new SecurityFacade().loadUsers().then(users=&gt;this.users); \/\/Arrow-functions \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c var _this=this;                  }         }                 \/\/ @ngInject \tfunction SecurityDirective ():ng.IDirective { \t\treturn { \t\t\tscope: {}, \t\t\ttemplateUrl: routing.isMobile() ? 'ui\/security\/Security.html' : 'app\/security\/SecurityMobile.html', \t\t\tcontroller:SecurityController , \t\t\tcontrollerAs: 'securityCtrl' \t\t} \t}         angular.module('app').directive('securityDirective', SecurityDirective); } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043f\u0443\u0441\u0442\u044f \u0433\u043e\u0434<\/h4>\n<p>  \u0421\u0432\u044f\u0437\u043a\u043e\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b. \u0412 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435 \u0443\u0436\u0435 \u043f\u043e\u043b-\u0433\u043e\u0434\u0430. \u0423\u0436\u0435 \u043e\u043a\u043e\u043b\u043e 23k LoC \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u043b 7 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u0432, \u0441\u043c\u0435\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041e\u043d \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c, \u0441\u043a\u043e\u0440\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0443\u044e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0438\u0447\u0443. \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u0435\u043d\u044f\u043b\u0438 IndexedDb \u043b\u0438\u0431\u0443 \u043d\u0430 \u0441\u0432\u043e\u044e. Code-review \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u0435\u0433\u043a\u043e.<\/p>\n<p>  \u0421 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 offline \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f, \u043d\u043e 200Mb \u0445\u0440\u0430\u043d\u0438\u043c \u043b\u0435\u0433\u043a\u043e \u043d\u0430 \u0432\u0441\u0435\u0445 iPhone, iPad, Chome, IE10. \u041f\u043b\u044e\u0441, \u0432\u0435\u0441\u044c SPA (2,5Mb) \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0435\u0448\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0448\u0443\u0441\u0442\u0440\u043e \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 Angular \u0442\u0430\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u2014 \u0443\u0431\u0438\u0440\u0430\u0442\u044c watch \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0438 \u043a\u043e\u0434 views.<\/p>\n<p>  Autotests, \u043a\u0441\u0442\u0430\u0442\u0438, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0442\u043e\u0436\u0435 \u043d\u0430 Typescript \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Protractor \u0438 PageObject \u043f\u043e\u0434\u0445\u043e\u0434\u0430.<\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 Typescript \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0432 WebStorm, Visual Studio (\u0432 2015 \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e) \u0438 \u0440\u044f\u0434\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435. \u0415\u0441\u043b\u0438 \u0431\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438 \u0441\u0435\u0439\u0447\u0430\u0441, \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u043b\u0438-\u0431\u044b React \u0432\u043c\u0435\u0441\u0442\u043e Angular. \u0422\u0430\u043a\u0436\u0435 \u0434\u0443\u043c\u0430\u044e \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c Typescript \u0432 ASP.Net \u043d\u0430 \u0442\u044f\u0436\u0435\u043b\u044b\u0445 UI \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0430\u0445.       <\/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=\"http:\/\/habrahabr.ru\/post\/274591\/\"> http:\/\/habrahabr.ru\/post\/274591\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" align=\"left\" src=\"http:\/\/nyccamp.org\/sites\/default\/files\/AngularTypescript%20copy.jpg\" alt=\"image\" width=\"384\"\/>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u043e\u0431 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043d\u0430 Angular + Typescript \u043f\u043e \u043f\u0440\u043e\u0448\u0435\u0441\u0442\u0432\u0438\u0438 \u0433\u043e\u0434\u0430. \u042d\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043d\u043e\u0432\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430, \u0438 \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u0435\u0451 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u0436\u0434\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0431 React \u0438\u043b\u0438 Angular 2.0, \u043d\u043e \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0438 \u044d\u0442\u043e\u0442 \u043e\u043f\u044b\u0442 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d.  <\/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-271669","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271669","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=271669"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271669\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}