{"id":2381,"date":"2025-12-03T01:13:57","date_gmt":"2025-12-03T09:13:57","guid":{"rendered":"https:\/\/www.angulartraining.com\/daily-newsletter\/?p=2381"},"modified":"2025-12-03T04:30:36","modified_gmt":"2025-12-03T12:30:36","slug":"extendings-signals-frosm-with-a-custom-directive","status":"publish","type":"post","link":"http:\/\/www.angulartraining.com\/daily-newsletter\/extendings-signals-frosm-with-a-custom-directive\/","title":{"rendered":"Extending Signals Forms with a custom directive"},"content":{"rendered":"\n<p>I decided to do something different for this newsletter: a video tutorial (about 12 minutes long) instead of a blog post. If you like that format, please let me know. I might use this once or twice per month from now on if you like it.<\/p>\n\n\n\n<p>The goal of the video is to re-enable <a href=\"https:\/\/www.angulartraining.com\/daily-newsletter\/basic-form-validation-with-angular\/\" target=\"_blank\" rel=\"noopener\" title=\"\">form CSS classes<\/a> such as <code>ng-valid<\/code>, <code>ng-touched<\/code>, <code>ng-pristine<\/code>, etc., in Signal Forms since that feature is absent from the API at the moment. <\/p>\n\n\n\n<p>It&#8217;s a great example of <a href=\"https:\/\/www.angulartraining.com\/daily-newsletter\/when-to-create-a-directive-vs-a-component\/\" target=\"_blank\" rel=\"noopener\" title=\"\">creating a custom directive<\/a>, which isn&#8217;t something developers do every day, making it an even more interesting tutorial:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Extending Angular Signal Forms using Custom Directives\" width=\"648\" height=\"365\" src=\"https:\/\/www.youtube.com\/embed\/R8pp5Cg5sn8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Your feedback is welcome! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to do something different for this newsletter: a video tutorial (about 12 minutes long) instead of a blog post. If you like that format, please let me know. I might use this once or twice per month from now on if you like it. The goal of the video is to re-enable form [&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,11,22,29],"tags":[],"class_list":["post-2381","post","type-post","status-publish","format-standard","hentry","category-angular","category-directives","category-forms","category-signals"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/2381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/comments?post=2381"}],"version-history":[{"count":2,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/2381\/revisions"}],"predecessor-version":[{"id":2383,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/2381\/revisions\/2383"}],"wp:attachment":[{"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/media?parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/categories?post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/tags?post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}