{"id":502,"date":"2017-02-26T23:09:31","date_gmt":"2017-02-27T04:09:31","guid":{"rendered":"http:\/\/muthii.com\/blog\/?p=502"},"modified":"2017-02-26T23:11:09","modified_gmt":"2017-02-27T04:11:09","slug":"angular2-property-binding-ngfor-not-used-by-any-directive-on-an-embedded-template","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=502","title":{"rendered":"Angular2: Property binding ngFor not used by any directive on an embedded template"},"content":{"rendered":"<p>Just brushing up on some Angular2 and run into this error it didn&#8217;t make sense since I was using a tutorial from the official angular site. It turns out the language is changing faster that the documentation can keep up with :). The cause for the error was using <code>#<\/code> with ngFor instead of <code>let<\/code> so instead of <code>*ngFor=\"#Item of Items\"<\/code> do <code>*ngFor=\"let Item of Items\"<\/code> My previous angular2 apps are locked to earlier versions of angular thats why I hadn&#8217;t run into this issue, but this time around I was starting a new project with the latest angular2 version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just brushing up on some Angular2 and run into this error it didn&#8217;t make sense since I was using a tutorial from the official angular site. It turns out the language is changing faster that the documentation can keep up with :). The cause for the error was using # with ngFor instead of let &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=502\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Angular2: Property binding ngFor not used by any directive on an embedded template&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124],"tags":[149],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/502"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=502"}],"version-history":[{"count":2,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":504,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions\/504"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}