
Dave
@dwhensonAll solutions
Product List with Cart - Angular
#angular#typescriptPSubmitted 5 months agoI've a couple of questions I'd love feedback on - mostly based on my experience with React:
Am I mutating state and does this matter? In the button component I am increasing/decreasing the quantity within the component rather than destroying and updating the state in DesertsService. Everything seems to work OK, but I'm not sure if this is bad practice?
Reaching into the DOM... I'm reaching into the DOM to remove items from the Cart component. I feel like this is wrong. From working with React I feel like I should be handing this over to Angular to take care of rather than using querySelector.
I am also using the native HTML dialog element and methods for the modal. Again this feels wrong, and being able to dismiss the modal with the escape key knocks state out of sync. I used @viewChild to access the dialog, but honestly, I just pasted this in with little understanding.
Result Component - Angular
#angular#typescriptPSubmitted 5 months agoAny advice on basic aspects of Angular that I may have missed or practices could be improved would be most welcome.
Results Component - Learning Angular
#angular#typescriptPSubmitted 5 months agoAny advice on basic aspects of Angular that I may have missed or practices could be improved would be most welcome.
Sunnyside Agency - Intrinsic Design Approach
#accessibility#cube-css#sass/scssPSubmitted over 2 years agoProgressively enhanced, accessible, dropdown menus and burger-menu
#accessibility#progressive-enhancement#cube-cssPSubmitted over 2 years agoProgressively enhanced, vanilla everything, Bookmark Landing page
#accessibility#gulp#sass/scssPSubmitted over 3 years agoAPI shortening - CSS animations and transistions
#accessibility#sass/scss#gulpPSubmitted over 3 years ago