{"id":2281,"date":"2019-02-28T20:34:01","date_gmt":"2019-02-28T11:34:01","guid":{"rendered":"http:\/\/www.cotegg.com\/blog\/?p=2281"},"modified":"2019-02-28T20:34:01","modified_gmt":"2019-02-28T11:34:01","slug":"ng-if%e3%81%aeelse%e5%8f%a5%e3%81%a7%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%81%a8%e5%90%8d%e5%89%8d%e9%87%8d%e8%a4%87","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=2281","title":{"rendered":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u3053\u3084\u307e\u3067\u3059\u3002<\/p>\n<p>Angular\u3092\u89e6\u3063\u3066\u3044\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u5909\u3048\u3066\u3044\u306a\u3044\u306e\u306b\u3001<br \/>\n\u3044\u3064\u306e\u9593\u306b\u304bstring\u304b\u3089object\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\nngif\u306eelse\u53e5\u306e\u540d\u524d\u304ccomponent\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u540c\u3058\u540d\u524d\u306e\u3068\u304d\u3001<br \/>\nelse\u53e5\u306e\u65b9\u304c\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>ts\u30d5\u30a1\u30a4\u30eb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport class MatchingProjectDetailComponent implements OnInit {\nhoge: &amp;#039;hogeString&amp;#039;\nfuga: &amp;#039;fugaString&amp;#039;\n}\n<\/pre>\n<p>html\u30d5\u30a1\u30a4\u30eb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;div *ngIf=&amp;quot;project.important_line_judge; else hoge&amp;quot;&amp;gt;\n  &amp;lt;div&amp;gt;true&amp;lt;\/div&amp;gt;\n&amp;lt;div&amp;gt;\n&amp;lt;ng-template #hoge&amp;gt;\n  &amp;lt;div&amp;gt;false&amp;lt;\/div&amp;gt;\n&amp;lt;ng-template&amp;gt;\n\n\n{{hoge}}\n\/\/ [object Object]\n\n{{fuga}}\n\/\/ &amp;#039;fugaString&amp;#039;\n<\/pre>\n<p>ngif\u3067\u306fhtml\u3067\u306e\u540d\u524d\u91cd\u8907\u306f\u3082\u3061\u308d\u3093\u30c0\u30e1\u3067\u3059\u304c\u3001ts\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u6c17\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u3053\u3084\u307e\u3067\u3059\u3002 Angular\u3092\u89e6\u3063\u3066\u3044\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3 &#8230; <\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[52],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotegg.com\/blog\/?p=2281\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3053\u3093\u306b\u3061\u306f\u3001\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u3053\u3084\u307e\u3067\u3059\u3002 Angular\u3092\u89e6\u3063\u3066\u3044\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=2281\" \/>\n<meta property=\"og:site_name\" content=\"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/COTegg.japan\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-28T11:34:01+00:00\" \/>\n<meta name=\"author\" content=\"koyamak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:site\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"koyamak\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281\"},\"author\":{\"name\":\"koyamak\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/db878500c9ef5cbdeca0ba2a1c56cac1\"},\"headline\":\"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907\",\"datePublished\":\"2019-02-28T11:34:01+00:00\",\"dateModified\":\"2019-02-28T11:34:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281\"},\"wordCount\":72,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"keywords\":[\"angular\"],\"articleSection\":[\"\u6280\u8853\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2281#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=2281\",\"name\":\"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2019-02-28T11:34:01+00:00\",\"dateModified\":\"2019-02-28T11:34:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2281\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2281#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotegg.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"name\":\"COTegg\u306e\u30d0\u30b1\u30c4\",\"description\":\"- Bucket of cotegg -\",\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\",\"name\":\"COTegg Inc.\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"contentUrl\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"width\":176,\"height\":60,\"caption\":\"COTegg Inc.\"},\"image\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/COTegg.japan\/\",\"https:\/\/twitter.com\/cotegg_japan\",\"https:\/\/www.instagram.com\/cotegg_japan\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/db878500c9ef5cbdeca0ba2a1c56cac1\",\"name\":\"koyamak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/54c82918922033a6338233d1ad970bef?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/54c82918922033a6338233d1ad970bef?s=96&d=mm&r=g\",\"caption\":\"koyamak\"},\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=10\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotegg.com\/blog\/?p=2281","og_locale":"ja_JP","og_type":"article","og_title":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3053\u3093\u306b\u3061\u306f\u3001\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u3053\u3084\u307e\u3067\u3059\u3002 Angular\u3092\u89e6\u3063\u3066\u3044\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3 ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=2281","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2019-02-28T11:34:01+00:00","author":"koyamak","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"koyamak"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=2281#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2281"},"author":{"name":"koyamak","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/db878500c9ef5cbdeca0ba2a1c56cac1"},"headline":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907","datePublished":"2019-02-28T11:34:01+00:00","dateModified":"2019-02-28T11:34:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2281"},"wordCount":72,"commentCount":0,"publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"keywords":["angular"],"articleSection":["\u6280\u8853"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cotegg.com\/blog\/?p=2281#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=2281","url":"https:\/\/www.cotegg.com\/blog\/?p=2281","name":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2019-02-28T11:34:01+00:00","dateModified":"2019-02-28T11:34:01+00:00","breadcrumb":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2281#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=2281"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotegg.com\/blog\/?p=2281#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotegg.com\/blog"},{"@type":"ListItem","position":2,"name":"ng-if\u306eelse\u53e5\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540d\u524d\u91cd\u8907"}]},{"@type":"WebSite","@id":"https:\/\/www.cotegg.com\/blog\/#website","url":"https:\/\/www.cotegg.com\/blog\/","name":"COTegg\u306e\u30d0\u30b1\u30c4","description":"- Bucket of cotegg -","publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.cotegg.com\/blog\/#organization","name":"COTegg Inc.","url":"https:\/\/www.cotegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","contentUrl":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","width":176,"height":60,"caption":"COTegg Inc."},"image":{"@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/COTegg.japan\/","https:\/\/twitter.com\/cotegg_japan","https:\/\/www.instagram.com\/cotegg_japan\/"]},{"@type":"Person","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/db878500c9ef5cbdeca0ba2a1c56cac1","name":"koyamak","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/54c82918922033a6338233d1ad970bef?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54c82918922033a6338233d1ad970bef?s=96&d=mm&r=g","caption":"koyamak"},"url":"https:\/\/www.cotegg.com\/blog\/?author=10"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2281"}],"collection":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2281"}],"version-history":[{"count":1,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2281\/revisions"}],"predecessor-version":[{"id":2282,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2281\/revisions\/2282"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}