{"id":255132,"date":"2015-04-13T19:54:01","date_gmt":"2015-04-13T15:54:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255132"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255132","title":{"rendered":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Ionic Framework"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/16c\/14e\/530\/16c14e530af9913b0feb642fe8698b70.png\" alt=\"image\"\/><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/company\/simpleweek\/blog\/254681\/#comment_8371547\">\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432<\/a> \u044f \u043f\u043e\u043e\u0431\u0435\u0449\u0430\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0432\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 <i>Ionic Framework<\/i> (\u0434\u0430\u043b\u0435\u0435 IF). \u0421\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u044f. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e IF:<\/p>\n<ul>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/components\/\">\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/api\/\">API \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 <i>AngularJS<\/i> \u0434\u043b\u044f IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/ionic-cli-faq\/\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e CLI IF<\/a> <\/li>\n<li><a href=\"http:\/\/learn.ionicframework.com\/\">\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/guide\/\">\u0426\u0438\u043a\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicons.com\/\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043a\u043e\u043d\u043e\u043a<\/a> <\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c? \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u043e\u0433\u043e\u0434\u0435 \u0441 <a href=\"http:\/\/openweathermap.org\/\">openweathermap.org<\/a> \u0434\u043b\u044f \u0433. \u041c\u043e\u0441\u043a\u0432\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0445. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u041e\u0421 <i>Linux Mint<\/i> \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b <i>Android<\/i>. \u0414\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0434 <i>IOS<\/i> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0444\u0438\u0440\u043c\u044b <i>Apple<\/i>. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u042f\u041f JavaScript \u0438 \u043e\u0441\u043d\u043e\u0432\u0430\u043c\u0438 AngularJS (\u043d\u0443 \u0438\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u043e \u0432\u0441\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f).<\/p>\n<ul>\n<li><a href=\"#entering\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/a><\/li>\n<li><a href=\"#installing\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/a><\/li>\n<li><a href=\"#creating\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/li>\n<li><a href=\"#structure\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/li>\n<li><a href=\"#pathsadding\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u0438<\/a><\/li>\n<li><a href=\"#getingdata\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/a><\/li>\n<li><a href=\"#viewstuning\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a><\/li>\n<li><a href=\"#refreshing\">\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 (pull-to-refresh)<\/a><\/li>\n<li><a href=\"#deploy\">\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a><\/li>\n<li><a href=\"#summary\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h3><a name=\"entering\"><\/a>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>  IF \u2014 \u044d\u0442\u043e open source SDK \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0439 \u043c\u043e\u0449\u0438 HTML5, CSS3 \u0438 JavaScript, \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0438\u043c\u0431\u0438\u043e\u0437\u0430 <i>Cordova<\/i> \u0438 <i>AngularJS<\/i>. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/showcase.ionicframework.com\/\">showcase.ionicframework.com<\/a>. \u041f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0435\u0432\u044b\u0441\u043e\u043a, \u043d\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f <i>AngularJS<\/i> \u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b <i>Cordova<\/i> \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0422\u0430\u043a \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0433\u043e \u0441\u043a\u043e\u0440\u0435\u0435!<\/p>\n<h3><a name=\"installing\"><\/a>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>  \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <i><a href=\"https:\/\/nodejs.org\/\">NodeJS<\/a><\/i>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u0435\u0440\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:<\/p>\n<pre><code class=\"bash\">sudo npm i -g cordova ionic <\/code><\/pre>\n<p>  \u0423 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d <i>Android SDK<\/i>? \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u0430 <a href=\"http:\/\/cordova.apache.org\/docs\/en\/3.3.0\/guide_platforms_android_index.md.html#Android%20Platform%20Guide\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/a>. \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Windows \u0435\u0441\u0442\u044c <a href=\"http:\/\/learn.ionicframework.com\/videos\/windows-android\/\">\u0432\u0432\u043e\u0434\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435<\/a>. \u0422\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 <a href=\"https:\/\/github.com\/driftyco\/ionic-cordova-android-vagrant\"><i>Vagrant<\/i> \u0441\u0431\u043e\u0440\u043a\u0430<\/a> \u0441\u043e \u0432\u0441\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b\u043c \u041f\u041e. \u0411\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e (\u0430 \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438, \u0442\u043e \u043d\u0430 <a href=\"http:\/\/forum.ionicframework.com\/\">\u0444\u043e\u0440\u0443\u043c\u0435<\/a> \u0442\u043e\u0447\u043d\u043e \u0435\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <i>Android SDK<\/i>, \u043d\u043e \u0435\u0441\u0442\u044c \u0438 \u0442\u0440\u0430\u0431\u043b\u044b \u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/stackoverflow.com\/search?q=ionic\">SO<\/a>, \u0442\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u0442\u0435\u043c\u0435). \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0438\u0434\u0430\u0442\u044c.<\/p>\n<h3><a name=\"creating\"><\/a>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>  \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. IF \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 3 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 <b>blank<\/b> (\u043f\u0443\u0441\u0442\u043e\u0439), <b>tabs<\/b> (\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0430\u0431\u043e\u0432) \u0438 <b>sidemenu<\/b> (\u0441 \u0431\u043e\u043a\u043e\u0432\u044b\u043c \u043c\u0435\u043d\u044e). \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e, \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435? \u0412\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u044d\u0442\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:<\/p>\n<pre><code class=\"bash\">ionic start MSKWeather tabs <\/code><\/pre>\n<p>  \u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c IF \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <i>MSKWeather<\/i> \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c <i>tabs<\/i>. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0432\u0430\u0448\u0443 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0442\u0430\u043c. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u043e\u0439:<\/p>\n<pre><code class=\"bash\">cd MSKWeather <\/code><\/pre>\n<p>  \u042f \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0430\u0431\u044b \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0441\u0432\u043e\u0435 \u0438 \u0432\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u0432\u0435\u0434\u044c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f \u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0443\u043b\u044f. \u0414\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0442\u0430\u0440\u0442\u0430 \u0441\u043e\u0439\u0434\u0435\u0442 \u0438 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043a \u043a\u043e\u043d\u0446\u0443 \u0441\u0442\u0430\u0442\u044c\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0438 \u0432\u044b \u0441 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0447\u043d\u0435\u0442\u0435 \u0441 <b>blank<\/b> \u0448\u0430\u0431\u043b\u043e\u043d\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u0435 \u043c\u0435\u043d\u044f \u0437\u0430 \u043c\u043e\u044e \u043b\u0435\u043d\u044c. \u0418\u0442\u0430\u043a, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 IF.<\/p>\n<h3><a name=\"structure\"><\/a>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>  \u0412 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b <b>config.xml<\/b>, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a \u043d\u0435\u043c\u0443 (\u0430 \u0442\u0430\u043a\u0436\u0435 \u043a \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c) \u043c\u044b \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435, \u0430 \u043f\u043e\u043a\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <b>www<\/b> (\u043a\u0441\u0442\u0430\u0442\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Sublime \u0438 \u0443\u0436\u0435 \u043e\u0442\u043a\u0440\u044b\u043b \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043d\u0435\u043c) \u0438 \u0443\u0432\u0438\u0434\u0438\u043c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0411\u0440\u043e\u0441\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 <b>index.html<\/b> \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0443\u044e\u0449\u0435\u0435 \u0437\u0432\u0435\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e!). \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438:<\/p>\n<pre><code class=\"html\">&lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width&quot;&gt; <\/code><\/pre>\n<p>  \u041a\u0440\u0443\u0442\u0430\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0440\u0435\u0442 \u043d\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u0423\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 <i>AngularJS<\/i> \u0432 \u0442\u0435\u0433\u0435 <b>body<\/b>, \u043d\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435<\/p>\n<pre><code class=\"html\">&lt;ion-nav-bar class=&quot;bar-stable&quot;&gt;   &lt;ion-nav-back-button&gt;   &lt;\/ion-nav-back-button&gt; &lt;\/ion-nav-bar&gt; &lt;ion-nav-view&gt;&lt;\/ion-nav-view&gt; <\/code><\/pre>\n<p>  \u0415\u0441\u0442\u044c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u043f\u0430\u043d\u0435\u043b\u0438 \u0442\u0430\u0431\u043e\u0432 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb, \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c\u0441\u044f (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f) \u043d\u0430\u0448\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <b>templates<\/b>. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043d\u0430\u0441 \u0444\u0430\u0439\u043b <b>tabs.html<\/b> \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0431\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u043c 2 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0442\u0430\u0431\u0430:<\/p>\n<pre><code class=\"html\">&lt;!-- Chats Tab --&gt; &lt;ion-tab title=&quot;Chats&quot; icon-off=&quot;ion-ios-chatboxes-outline&quot; icon-on=&quot;ion-ios-chatboxes&quot; href=&quot;#\/tab\/chats&quot;&gt;   &lt;ion-nav-view name=&quot;tab-chats&quot;&gt;&lt;\/ion-nav-view&gt; &lt;\/ion-tab&gt; &lt;!-- Account Tab --&gt; &lt;ion-tab title=&quot;Account&quot; icon-off=&quot;ion-ios-gear-outline&quot; icon-on=&quot;ion-ios-gear&quot; href=&quot;#\/tab\/account&quot;&gt;   &lt;ion-nav-view name=&quot;tab-account&quot;&gt;&lt;\/ion-nav-view&gt; &lt;\/ion-tab&gt; <\/code><\/pre>\n<p>  \u0410 \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u043c\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0443, \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n<pre><code class=\"html\">&lt;ion-tabs class=&quot;tabs-icon-top tabs-color-active-positive&quot;&gt;   &lt;ion-tab title=&quot;Status&quot; icon-off=&quot;ion-cloud&quot; icon-on=&quot;ion-cloud&quot; href=&quot;#\/tab\/dash&quot;&gt;     &lt;ion-nav-view name=&quot;tab-dash&quot;&gt;&lt;\/ion-nav-view&gt;   &lt;\/ion-tab&gt; &lt;\/ion-tabs&gt; <\/code><\/pre>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u0442\u0432\u043e\u0440\u0438\u043b\u0438, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">ionic serve <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0434\u0430\u0447\u043d\u043e, \u0432\u0430\u0441 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0435\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <a href=\"http:\/\/localhost:8100\/#\/tab\/dash\">http:\/\/localhost:8100\/#\/tab\/dash<\/a> \u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f live-reload web-\u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u044d\u0442\u043e \u0434\u0430!<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"\/\/habrastorage.org\/files\/804\/109\/de6\/804109de67b3462fbf7f840138f0e010.png\"\/><\/div>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u0438 \u0443 \u043d\u0430\u0441 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043e\u0434\u0438\u043d \u0442\u0430\u0431 \u0441 \u0438\u043a\u043e\u043d\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u043a\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c <b>tab-account.html<\/b> \u0438 <b>tab-chats.html<\/b> (\u0438\u0431\u043e \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c <b>chat-detail.html<\/b> \u0432 <b>city-detail.html<\/b>, \u0430 <b>tab-dash.html<\/b> \u0432 <b>tab-city.html<\/b> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u042d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0448\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0433\u043e\u0440\u043e\u0434\u0430 \u0438 \u0435\u0433\u043e \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0410 \u0435\u0449\u0435 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0438\u043c\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 url \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0424\u0430\u0439\u043b <b>tabs.html<\/b> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"html\">&lt;ion-tabs class=&quot;tabs-icon-top tabs-color-active-positive&quot;&gt;   &lt;ion-tab title=&quot;Status&quot; icon-off=&quot;ion-cloud&quot; icon-on=&quot;ion-cloud&quot; href=&quot;#\/tab\/city&quot;&gt;     &lt;ion-nav-view name=&quot;tab-city&quot;&gt;&lt;\/ion-nav-view&gt;   &lt;\/ion-tab&gt; &lt;\/ion-tabs&gt; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0430\u043b \u0447\u0435\u0440\u0435\u0434 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h3><a name=\"pathsadding\"><\/a>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u0438<\/h3>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0447\u0435\u0441\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 IF. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 <b>www\/js<\/b> \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0444\u0430\u0439\u043b <b>app.js<\/b>, \u0432 \u043d\u0435\u043c \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f.<\/p>\n<pre><code class=\"javascript\">angular.module('starter', ['ionic', 'starter.controllers', 'starter.services']) <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043d\u0435\u043c\u0443 \u043c\u043e\u0434\u0443\u043b\u044f IF, \u043c\u043e\u0434\u0443\u043b\u044f \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438 \u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 (\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u044f \u0438 \u043a\u043e\u0440\u044f\u0432\u043e \u044d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043b). \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <b>config<\/b> \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 2 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 $stateProvider \u0438 $urlRouterProvider (\u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0443\u0442\u0435\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e). \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u043c \u043b\u0438\u0448\u043d\u0435\u0435, \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0443\u0442\u0435\u0439. \u0424\u0430\u0439\u043b <b>app.js<\/b> \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">app.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">angular.module('starter', ['ionic', 'starter.controllers', 'starter.services']) .run(function($ionicPlatform) {   $ionicPlatform.ready(function() {     if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {       cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);     }     if (window.StatusBar) {       StatusBar.styleLightContent();     }   }); }) .config(function($stateProvider, $urlRouterProvider) {   $stateProvider   .state('tab', {     url: &quot;\/tab&quot;,     abstract: true,     templateUrl: &quot;templates\/tabs.html&quot;   })   .state('tab.city', {       url: '\/city',     views: {       'tab-city': {         templateUrl: 'templates\/tab-city.html',         controller: 'CityCtrl'       }     }   })   .state('tab.city-detail', {     url: '\/city\/:id',     views: {       'tab-city': {         templateUrl: 'templates\/city-detail.html',         controller: 'CityDetailCtrl'       }     }   })   $urlRouterProvider.otherwise('\/tab\/city'); }); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043c\u0435\u0442\u0438\u0442 \u0447\u0442\u043e \u0436\u0435 \u043c\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 <b>$stateProvider<\/b> \u043f\u043e\u0434 \u043d\u0430\u0448\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430 \u2014 \u00ab\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u00bb, \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f url \u0434\u043e\u0441\u0442\u0443\u043f\u0430, view \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f (\u0438\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u0443 \u0442\u0430\u0431\u0430 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0448\u0430\u0433\u0435), \u043f\u0443\u0442\u044c \u043a \u0448\u0430\u0431\u043b\u043e\u043d\u0443, \u0438 \u0438\u043c\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043d\u043e \u043c\u044b \u044d\u0442\u043e \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c (\u043a\u0441\u0442\u0430\u0442\u0438, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/www.youtube.com\/watch?v=ZjPRj2Vp74U\">\u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0437\u0438\u044e Ionic \u043e\u0442 Andrew Joslin&#8217;a \u043d\u0430 ngEurope<\/a>). \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043c\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 tab.city \u0438 tab.city-detail \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u0432 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 (\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435) \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0435 \u0443 \u043d\u0430\u0441 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435. <b>$urlRouterProvider.otherwise(&#8216;\/tab\/city&#8217;)<\/b> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0435\u0441\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e (\u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 tab\/city). \u0415\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0442\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f, \u043a\u0440\u043e\u043c\u0435, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0432\u043a\u0443\u0441\u043d\u043e\u0441\u0442\u044f\u043c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e.<\/p>\n<h3><a name=\"getingdata\"><\/a>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b <b>controllers.js<\/b> \u0434\u0430\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435 \u043c\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c <b>CityCtrl<\/b> \u0438 <b>CityDetailCtrl<\/b>, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c:<\/p>\n<pre><code class=\"javascript\">angular.module('starter.controllers', []) .controller('CityCtrl', function($scope) { }) .controller('CityDetailCtrl', function($scope) { }); <\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <b>services.js<\/b> \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0438\u0442\u0435 \u0435\u0433\u043e \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">services.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">angular.module('starter.services', []) .factory('Cities', function() {   var cities = [{     id: 524901,     name: '\u041c\u043e\u0441\u043a\u0432\u0430',     desc: '\u0421\u0442\u043e\u043b\u0438\u0446\u0430 \u043d\u0430\u0448\u0435\u0439 \u0420\u043e\u0434\u0438\u043d\u044b',     emblem: 'http:\/\/upload.wikimedia.org\/wikipedia\/commons\/d\/da\/Coat_of_Arms_of_Moscow.png'   }];   return {     all: function() {       return cities;     },     get: function(id) {       for (var i = 0; i &lt; cities.length; i++) {         if (cities[i].id === parseInt(id)) {           return cities[i];         }       }       return null;     }   }; }); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043e\u043d \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044c. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 <b>controllers.js<\/b>.<br \/>  \u0412\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0444\u0430\u0431\u0440\u0438\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u0430 \u0444\u0430\u0431\u0440\u0438\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0435 \u0438\u043c\u044f <i>&#8216;Cities&#8217;<\/i> \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u043c\u0435\u0442\u043e\u0434\u044b. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435:<\/p>\n<pre><code class=\"javascript\">.controller('CityCtrl', function($scope, Cities) { \t$scope.cities = Cities.all(); }) <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0433\u043e\u0440\u043e\u0434\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0435\u0433\u043e \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u0443 CityDetailCtrl \u0442\u043e \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e $http (\u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AJAX), $stateParams (\u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0438\u0437 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0440\u043e\u043a\u0438) \u0438 $ionicPopup (\u0434\u043b\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435). \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0433\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440:<\/p>\n<pre><code class=\"javascript\">.controller('CityDetailCtrl', function($scope, $http, $stateParams, $ionicPopup) { \t$scope.data = {}; \t$scope.id = $stateParams.id; \t$scope.showAlert = function(title, text) { \t\t$ionicPopup.alert({ \t\t\ttitle: title, \t\t\ttemplate: text \t\t}); \t}; \t$scope.refresh = function() { \t\t$http.get('http:\/\/api.openweathermap.org\/data\/2.5\/forecast\/daily?id='+$scope.id) \t\t.success(function(data, status, headers, config){ \t\t\t$scope.data = data; \t\t\t$scope.$broadcast('scroll.refreshComplete'); \t\t}) \t\t.error(function(data, status, headers, config){ \t\t\t$scope.showAlert(status, data); \t\t\t$scope.$broadcast('scroll.refreshComplete'); \t\t}); \t}; \t$scope.refresh(); }) <\/code><\/pre>\n<p>  \u041d\u0443 \u0432\u043e\u0442, \u0443 \u043d\u0430\u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e! \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 =)<\/p>\n<h3><a name=\"viewstuning\"><\/a>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432<\/h3>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 <b>tab-city.html<\/b>. \u041f\u043e\u043c\u043d\u0438\u0442\u0441\u044f, \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043e\u0442 \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u0432 \u0441\u043a\u043e\u0443\u043f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0433\u043e\u0440\u043e\u0434\u043e\u0432. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0441 <a href=\"http:\/\/ionicframework.com\/docs\/components\/#item-avatars\">\u0430\u0432\u0430\u0442\u0430\u0440\u043a\u0430\u043c\u0438<\/a>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<pre><code class=\"html\">&lt;ion-view view-title=&quot;\u0413\u043e\u0440\u043e\u0434\u0430&quot;&gt;   &lt;ion-content class=&quot;padding&quot;&gt;     &lt;ion-list&gt;       &lt;a class=&quot;item item-avatar&quot; ng-repeat=&quot;city in cities&quot; href=&quot;#\/tab\/city\/{{city.id}}&quot;&gt;         &lt;img ng-src=&quot;{{city.emblem}}&quot;&gt;         &lt;h2&gt;{{city.name}}&lt;\/h2&gt;         &lt;p&gt;{{city.desc}}&lt;\/p&gt;       &lt;\/a&gt;     &lt;\/ion-list&gt;   &lt;\/ion-content&gt; &lt;\/ion-view&gt; <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0444\u0430\u0439\u043b \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u043e\u0441\u0441\u0438\u044f &#8212; \u0441\u0432\u044f\u0449\u0435\u043d\u043d\u0430\u044f \u043d\u0430\u0448\u0430 \u0434\u0435\u0440\u0436\u0430\u0432\u0430!<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"\/\/habrastorage.org\/files\/eed\/886\/771\/eed88677179142c89653d516e2d31d4b.png\"\/><\/div>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a <b>city-detail.html<\/b>. \u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u0430 \u043d\u0435\u0434\u0435\u043b\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/api.openweathermap.org\/data\/2.5\/forecast\/daily?id=524901\">api.openweathermap.org\/data\/2.5\/forecast\/daily?id=524901<\/a>, \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043e\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"http:\/\/jsoneditoronline.org\/\">jsoneditoronline.org<\/a> \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f).<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">{   &quot;cod&quot;: &quot;200&quot;,   &quot;message&quot;: 0.0165,   &quot;city&quot;: {     &quot;id&quot;: 524901,     &quot;name&quot;: &quot;Moscow&quot;,     &quot;coord&quot;: {       &quot;lon&quot;: 37.615555,       &quot;lat&quot;: 55.75222     },     &quot;country&quot;: &quot;RU&quot;,     &quot;population&quot;: 1000000   },   &quot;cnt&quot;: 7,   &quot;list&quot;: [     {       &quot;dt&quot;: 1428915600,       &quot;temp&quot;: {         &quot;day&quot;: 283.84,         &quot;min&quot;: 278.31,         &quot;max&quot;: 284.09,         &quot;night&quot;: 278.31,         &quot;eve&quot;: 283.05,         &quot;morn&quot;: 281.75       },       &quot;pressure&quot;: 1010.15,       &quot;humidity&quot;: 74,       &quot;weather&quot;: [         {           &quot;id&quot;: 802,           &quot;main&quot;: &quot;Clouds&quot;,           &quot;description&quot;: &quot;scattered clouds&quot;,           &quot;icon&quot;: &quot;03d&quot;         }       ],       &quot;speed&quot;: 5.02,       &quot;deg&quot;: 243,       &quot;clouds&quot;: 32     },     {       &quot;dt&quot;: 1429002000,       &quot;temp&quot;: {         &quot;day&quot;: 279.6,         &quot;min&quot;: 275.65,         &quot;max&quot;: 280.3,         &quot;night&quot;: 275.65,         &quot;eve&quot;: 279.3,         &quot;morn&quot;: 278.04       },       &quot;pressure&quot;: 994.7,       &quot;humidity&quot;: 89,       &quot;weather&quot;: [         {           &quot;id&quot;: 500,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;light rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 5.01,       &quot;deg&quot;: 200,       &quot;clouds&quot;: 64,       &quot;rain&quot;: 1.86     },     {       &quot;dt&quot;: 1429088400,       &quot;temp&quot;: {         &quot;day&quot;: 277.79,         &quot;min&quot;: 273.76,         &quot;max&quot;: 278.35,         &quot;night&quot;: 277.3,         &quot;eve&quot;: 278.35,         &quot;morn&quot;: 273.76       },       &quot;pressure&quot;: 998.51,       &quot;humidity&quot;: 73,       &quot;weather&quot;: [         {           &quot;id&quot;: 500,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;light rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 6.53,       &quot;deg&quot;: 221,       &quot;clouds&quot;: 76,       &quot;rain&quot;: 0.53     },     {       &quot;dt&quot;: 1429174800,       &quot;temp&quot;: {         &quot;day&quot;: 282.85,         &quot;min&quot;: 276.5,         &quot;max&quot;: 282.85,         &quot;night&quot;: 276.5,         &quot;eve&quot;: 278.69,         &quot;morn&quot;: 279.93       },       &quot;pressure&quot;: 991.07,       &quot;humidity&quot;: 0,       &quot;weather&quot;: [         {           &quot;id&quot;: 501,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;moderate rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 5.36,       &quot;deg&quot;: 287,       &quot;clouds&quot;: 47,       &quot;rain&quot;: 4.22     },     {       &quot;dt&quot;: 1429261200,       &quot;temp&quot;: {         &quot;day&quot;: 280.71,         &quot;min&quot;: 274.5,         &quot;max&quot;: 280.71,         &quot;night&quot;: 274.5,         &quot;eve&quot;: 277.19,         &quot;morn&quot;: 280.17       },       &quot;pressure&quot;: 995.12,       &quot;humidity&quot;: 0,       &quot;weather&quot;: [         {           &quot;id&quot;: 501,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;moderate rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 5.32,       &quot;deg&quot;: 285,       &quot;clouds&quot;: 65,       &quot;rain&quot;: 3.23     },     {       &quot;dt&quot;: 1429347600,       &quot;temp&quot;: {         &quot;day&quot;: 281.27,         &quot;min&quot;: 276.59,         &quot;max&quot;: 281.27,         &quot;night&quot;: 276.59,         &quot;eve&quot;: 278.67,         &quot;morn&quot;: 279.17       },       &quot;pressure&quot;: 1002.53,       &quot;humidity&quot;: 0,       &quot;weather&quot;: [         {           &quot;id&quot;: 500,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;light rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 9.51,       &quot;deg&quot;: 359,       &quot;clouds&quot;: 67,       &quot;rain&quot;: 0.62     },     {       &quot;dt&quot;: 1429434000,       &quot;temp&quot;: {         &quot;day&quot;: 282.04,         &quot;min&quot;: 278.38,         &quot;max&quot;: 282.04,         &quot;night&quot;: 279.1,         &quot;eve&quot;: 280.23,         &quot;morn&quot;: 278.38       },       &quot;pressure&quot;: 1006.22,       &quot;humidity&quot;: 0,       &quot;weather&quot;: [         {           &quot;id&quot;: 500,           &quot;main&quot;: &quot;Rain&quot;,           &quot;description&quot;: &quot;light rain&quot;,           &quot;icon&quot;: &quot;10d&quot;         }       ],       &quot;speed&quot;: 5.5,       &quot;deg&quot;: 311,       &quot;clouds&quot;: 88,       &quot;rain&quot;: 0.97     }   ] } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e-\u0436, \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d, \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043d\u0438\u0436\u0435:<\/p>\n<pre><code class=\"html\">&lt;ion-view view-title=&quot;{{data.city.name}}&quot;&gt;   &lt;ion-content class=&quot;padding&quot;&gt;     &lt;h2&gt;       \u0413\u043e\u0440\u043e\u0434: {{data.city.name}}     &lt;\/h2&gt;     &lt;p&gt;       \u0421\u0442\u0440\u0430\u043d\u0430: {{data.city.country}}     &lt;\/p&gt;     &lt;p&gt;       \u041d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0435: {{data.city.population}} \u0447\u0435\u043b.     &lt;\/p&gt;     &lt;p&gt;       \u0428\u0438\u0440\u043e\u0442\u0430: {{data.city.coord.lon}}       \u0414\u043e\u043b\u0433\u043e\u0442\u0430: {{data.city.coord.lat}}     &lt;\/p&gt;     &lt;ion-list&gt;       &lt;a class=&quot;item item-avatar&quot; ng-repeat=&quot;day in data.list&quot; href=&quot;#&quot;&gt;         &lt;img ng-src=&quot;http:\/\/openweathermap.org\/img\/w\/{{day.weather[0].icon}}.png&quot;&gt;         &lt;h2&gt;\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: {{(day.temp.day - 273.15).toFixed(2)}} C&lt;\/h2&gt;         &lt;p&gt;\u041d\u0430 \u0434\u0430\u0442\u0443: &lt;span ng-bind=&quot;day.dt*1000 | date: 'dd.MM.yyyy'&quot;&gt;&lt;\/span&gt;&lt;\/p&gt;       &lt;\/a&gt;     &lt;\/ion-list&gt;   &lt;\/ion-content&gt; &lt;\/ion-view&gt; <\/code><\/pre>\n<p>  \u041d\u0435\u043a\u043e\u0433\u0434\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u2014 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c!<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0433\u043e\u0434\u043a\u0430 \u0440\u0430\u0434\u0443\u0435\u0442)<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"\/\/habrastorage.org\/files\/20b\/a4a\/8e6\/20ba4a8e66ad42748e6dbca0b001eaf8.png\"\/><\/div>\n<p>  <\/div>\n<\/div>\n<p>  \u0410\u0440\u0445\u0438\u0432 \u0441 \u043a\u043e\u0434\u043e\u043c \u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e-\u0436\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0443 \u043a \u0441\u0442\u0430\u0442\u044c\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u044f\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043b\u044f\u043c\u0438. \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0441\u0442, \u043f\u043e\u043d\u044f\u0442\u0435\u043d \u0438 \u043f\u0440\u0438\u044f\u0442\u0435\u043d (\u0441\u0435\u0440\u044a\u0435\u0437\u043d\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u043a\u0443\u0434\u0430 \u0432 \u044d\u0442\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435?). \u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a\u2026<\/p>\n<h3><a name=\"refreshing\"><\/a>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 (pull-to-refresh)<\/h3>\n<p>  \u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043c\u043d\u0435 \u044d\u0442\u0430 \u0432\u043a\u0443\u0441\u043d\u044f\u0448\u043a\u0430. \u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e? \u0412\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c<\/p>\n<pre><code class=\"html\">&lt;ion-refresher pulling-text=&quot;\u0422\u044f\u043d\u0435\u043c-\u043f\u043e\u0442\u044f\u043d\u0435\u043c&quot; on-refresh=&quot;refresh()&quot;&gt; &lt;\/ion-refresher&gt; <\/code><\/pre>\n<p>  \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0432 \u0441\u0430\u043c\u043e\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \u0442\u0435\u0433\u0430 <b>ion-content<\/b>. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c<\/p>\n<pre><code class=\"javascript\">$scope.$broadcast('scroll.refreshComplete'); <\/code><\/pre>\n<p>  \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 <b>success<\/b> \u0438 <b>error<\/b> \u0443 <b>$http.get<\/b> \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u043e\u0442\u044f\u043d\u0443\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<h3><a name=\"deploy\"><\/a>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0438 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u0445. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0440\u0430\u0437\u0443 \u0432 <i>IOS<\/i> \u0438 <i>Android<\/i> \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435:<\/p>\n<pre><code class=\"bash\">ionic serve --lab <\/code><\/pre>\n<p>  \u0438 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">It&#39;s alive!<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"\/\/habrastorage.org\/files\/a7b\/478\/052\/a7b478052f134d66ad35cf672c0d1177.png\"\/><\/div>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:<\/p>\n<pre><code class=\"bash\">ionic platform add android (\u043d\u0443 \u0438\u043b\u0438 ios) ionic build android (ios) ionic emulate android (ios) <\/code><\/pre>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 <i>Apple<\/i> \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <i>ios-sym<\/i>. \u0414\u043b\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043a \u0432\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f <i>Android<\/i> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"http:\/\/ionicframework.com\/docs\/guide\/publishing.html\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041a\u0430\u043a \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0441\u043f\u043b\u044d\u0448\u0438 \u043a \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/blog.ionic.io\/automating-icons-and-splash-screens\/\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p>  <a href=\"https:\/\/yadi.sk\/d\/yfz1ZuR-fxGRw\">\u0410\u0440\u0445\u0438\u0432 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c<\/a><\/p>\n<h3><a name=\"summary\"><\/a>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u043e\u043d\u0435\u0441\u0442\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 IF, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043d\u0443\u0442\u044c \u0432\u0430\u0441 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u0432 \u041b\u0421, \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0430\u0448\u0438\u0445 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 (\u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0431\u043e\u0440\u043d\u0438\u043a best practices). \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438 \u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0438\u043d\u0433\u0430!     \t<\/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\/255653\/\"> http:\/\/habrahabr.ru\/post\/255653\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/16c\/14e\/530\/16c14e530af9913b0feb642fe8698b70.png\" alt=\"image\"\/><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/company\/simpleweek\/blog\/254681\/#comment_8371547\">\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432<\/a> \u044f \u043f\u043e\u043e\u0431\u0435\u0449\u0430\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0432\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 <i>Ionic Framework<\/i> (\u0434\u0430\u043b\u0435\u0435 IF). \u0421\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u044f. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e IF:<\/p>\n<ul>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/components\/\">\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/api\/\">API \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 <i>AngularJS<\/i> \u0434\u043b\u044f IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/ionic-cli-faq\/\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e CLI IF<\/a> <\/li>\n<li><a href=\"http:\/\/learn.ionicframework.com\/\">\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicframework.com\/docs\/guide\/\">\u0426\u0438\u043a\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 IF<\/a> <\/li>\n<li><a href=\"http:\/\/ionicons.com\/\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043a\u043e\u043d\u043e\u043a<\/a> <\/li>\n<\/ul>\n<p>  <\/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-255132","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255132","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=255132"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255132\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}