How Angular Model Inputs helped me fix a weird bug in my app!

  Рет қаралды 622

Zoaib Khan

Zoaib Khan

Күн бұрын

#angular #signals #input
✨ Get the theme builder app shown in the video here:
buymeacoffee.com/zoaibkhan/e/...
Or try it out LIVE: easy-material-theming.vercel....
❤️ If you liked the video, you can buy me a coffee here:
buymeacoffee.com/zoaibkhan
📽️ My courses:
zoaibkhan.com/courses
✍️My blog for more free Angular posts:
zoaibkhan.com/blog
In this video, I'll discuss how we fixed a bug in one of my apps using the new Angular Model Inputs in v17.3 and also refactor my code using the same!
Socials:
Twitter - / zoaibdev
Facebook - / thisiszoaib
LinkedIn - / zoaib-khan-b6456815
Sections:
00:00 Introduction to Angular Model Inputs
00:29 The Issue with Side Nav
01:00 Diagnosing the Problem
01:12 Code Walkthrough
01:57 Implementing a Solution
04:28 Exploring Angular Model Inputs
06:41 Refactoring with Model Inputs
11:59 Alternative Solutions
12:37 Conclusion and Summary

Пікірлер: 8
@ZoaibKhan
@ZoaibKhan Ай бұрын
I would love to hear your thoughts on model inputs! Have you ever used them in your apps or plan to? Let me know :)
@codeblitz2354
@codeblitz2354 Ай бұрын
Keep it up bro nice content
@ZoaibKhan
@ZoaibKhan Ай бұрын
Thanks man 🙏
@MonaCodeLisa
@MonaCodeLisa Ай бұрын
I have not encountered that problem because I always delete the default databinded state and I set it to opened="open" that is like the default thing I do first, and then the second default thing is to remove "example-" from all classes & rearrange CSS styles to SCSS 🙂 But I like your approach and cool video 👍
@ZoaibKhan
@ZoaibKhan Ай бұрын
So you basically keep the state opened by default and then open and close using styles?
@MonaCodeLisa
@MonaCodeLisa Ай бұрын
@@ZoaibKhan the toggle still works, just it is initially open and clicking or tapping on mobile outside of the sidenav - does not close it, it is only controlled by the menu mat-icon
@ZoaibKhan
@ZoaibKhan Ай бұрын
@@MonaCodeLisa aah, so you're using the "side" mode instead of the "over" mode. It works for me in that case as well. The issue comes up when for smaller screens I need to make it work in "over" mode with backdrop click enabled.
@MonaCodeLisa
@MonaCodeLisa Ай бұрын
@@ZoaibKhan I am still using both, I am using the mediaquery matches, so desktop is "side" and turns into "over" for mobile, I keep all that Angular Material provides for me :) and the only thing I remove is the data binding there to set it to open as default state when page loads
I tested Angular 18 Zoneless mode and this is what I found out!
16:24
💥 Angular TYPED Forms: Are You Using Them Correctly? #angular
12:08
Angular University
Рет қаралды 3,4 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 9 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 677 М.
Angular CDK Tutorial: Automatically Resizing Textareas
6:38
Brian Treese
Рет қаралды 239
Reactive Forms in Angular - Dynamic Validation
13:24
Decoded Frontend
Рет қаралды 8 М.
Angular Signal Input: Ultimate Guide for Developers
6:52
Monsterlessons Academy
Рет қаралды 4,1 М.
3 Levels of Vim Refactoring
7:48
typecraft
Рет қаралды 38 М.
Are you using Angular Signal Effects in the RIGHT way?
11:13
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 25 М.
Reactive Form Validation in Angular: Mastering Best Practices
13:08
Monsterlessons Academy
Рет қаралды 4,3 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 94 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 421 М.
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,7 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 9 МЛН