Zlati
Member since May 8, 2018
- Profile: /members/13738-zlati.htm
- Comments: 8
Recent Blog Comments By Zlati
-
Most Of Your Modal Windows Should Be Directly Accessible By Route In Angular 7.2.15
Posted on Aug 4, 2019 at 9:52 AM
I'm sorry but I can't agree. The title is just a bold statement. Actually it's the inverse. Most of the modals should not be linked to router. Like Peter said above a modal functions in a specific context, and having the smart-dumb components relation modals most often are dumb. The data fo... read more »
-
Playing With Recursive Components In Angular 6.1.10
Posted on Oct 19, 2018 at 10:26 AM
I guess, I never bothered to change the tslint config from angular cli. The property use-host-property-decorator is true and that's why https://angular.io/guide/styleguide#style-06-03 I also had some issues with animations when using the animations setting. So I had to rewrite and use th... read more »
-
Playing With Recursive Components In Angular 6.1.10
Posted on Oct 19, 2018 at 9:22 AM
And looking at the other post you shared in the comments, my 2 cents is - I always put my styles in :host {}, not sure if this helps for your case.... read more »
-
Playing With Recursive Components In Angular 6.1.10
Posted on Oct 19, 2018 at 9:20 AM
Just a question, I'm curious, why you prefer typing inputs outputs and binding in the host declaration of the component. I read somewhere that is not recommended, or at least it is quite limiting. Instead I'm using massively the decorators provided @Input, @Output, @HostBinding etc.... read more »
-
Enable Tabbing Within A Fenced Code-Block Inside A Markdown Textarea In JavaScript
Posted on Jun 14, 2018 at 6:52 AM
Cool I really like that demonstration of advanced usage of the select api. But actually the interesting part are the functions that calculate the tabs and insert them in the right place.... read more »
-
Monitoring Document And Element Scroll Percentages Using RxJS In Angular 6.0.2
Posted on May 30, 2018 at 9:57 AM
I see that you still use this way of emiting events values this.scrollPercentageEvent.next( percent ), but should it be this.scrollPercentageEvent.emit( percent );... read more »
-
Translating Viewport Coordinates Into Element-Local Coordinates Using Element.getBoundingClientRect()
Posted on May 11, 2018 at 8:39 AM
Yep, make sense now. Thanks for the clarification.... read more »
-
Translating Viewport Coordinates Into Element-Local Coordinates Using Element.getBoundingClientRect()
Posted on May 8, 2018 at 12:57 PM
I find your solution pretty clever and straight forward. Nothing complicated really. Depends on what you are trying to achieve really. You said "forget about the click coordinates", But I find them I bit tricky depending on the situation. For example I have a knob that should rotate in cer... read more »