angularcdk

Angular CDK Tutorial: Automatically Resizing Textareas

Angular CDK Tutorial: Automatically Resizing Textareas

By default, an HTML textarea control doesn’t expand or contract as content is added and removed. Sometimes this is ok, but often it would be better if we did have some control where we could allow the height to resize automatically, to better fit the content. Well, this is possible and, in fact, it’s really easy to do in Angular when using the CDK. In this example I’ll show you just how easy it is. Alright, let’s get to it! The Demo Application For the example in this post, we’ll be working with this demo application, Petpix. It’s an app…
Read More
Angular CDK Tutorial: Accordion Module

Angular CDK Tutorial: Accordion Module

An accordion component is a component that has one or more expandable sections within it. It’s pretty common to have the need for this type of thing when building apps in Angular. And, it’s not the most difficult thing to do even if you’re creating your own from scratch but the CDK makes it really simple. In this example I’ll show you just how easy it is. And after we create the accordion using the CDK, we’ll even make it accessible with some ARIA. Alright, let’s get to it! The Demo Application For the example we’ll be working with in…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.