{"id":1153,"date":"2023-07-06T05:00:00","date_gmt":"2023-07-06T12:00:00","guid":{"rendered":"https:\/\/www.angulartraining.com\/daily-newsletter\/?p=1153"},"modified":"2023-06-30T15:10:20","modified_gmt":"2023-06-30T22:10:20","slug":"angular-style-guide","status":"publish","type":"post","link":"https:\/\/www.angulartraining.com\/daily-newsletter\/angular-style-guide\/","title":{"rendered":"Angular style guide"},"content":{"rendered":"\n<p>People often ask me the best way to organize their files\/folders. While it&#8217;s mostly a matter of personal preference or a team decision, the recommendations of the <a href=\"https:\/\/angular.io\/guide\/styleguide\" target=\"_blank\" rel=\"noopener\" title=\"\">Angular style guide<\/a> are always good to follow.<\/p>\n\n\n\n<p>For instance, when it comes down to folders, here&#8217;s what the official style guide says (the highlight is mine, as I find this to be true for myself):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"462\" src=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/06\/image-46.png\" alt=\"\" class=\"wp-image-1154\" srcset=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/06\/image-46.png 898w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/06\/image-46-300x154.png 300w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/06\/image-46-768x395.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>What&#8217;s great about the Angular style guide is that it always provides why such approaches are recommended. As you can see, the above justifications make perfect sense.<\/p>\n\n\n\n<p>Also, while some recommendations are purely naming conventions, others touch on architecture decisions, such as <a href=\"https:\/\/angular.io\/guide\/styleguide#talk-to-the-server-through-a-service\" target=\"_blank\" rel=\"noopener\" title=\"\">talking<\/a> to the server through a service or using<a href=\"https:\/\/angular.io\/guide\/styleguide#use-directives-to-enhance-an-element\" target=\"_blank\" rel=\"noopener\" title=\"\"> directives to enhance an element<\/a> (somewhat similar to my earlier call to <a href=\"https:\/\/www.angulartraining.com\/daily-newsletter\/when-to-create-a-directive-vs-a-component\/\" target=\"_blank\" rel=\"noopener\" title=\"\">think more about directives instead of components<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>People often ask me the best way to organize their files\/folders. While it&#8217;s mostly a matter of personal preference or a team decision, the recommendations of the Angular style guide are always good to follow. For instance, when it comes down to folders, here&#8217;s what the official style guide says (the highlight is mine, as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,31],"tags":[],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-angular","category-best-practices"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/comments?post=1153"}],"version-history":[{"count":2,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/1153\/revisions\/1156"}],"wp:attachment":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}