NSN
Member since Apr 4, 2019
- Profile: /members/13918-nsn.htm
- Comments: 11
Recent Blog Comments By NSN
-
Rendering A List Of Mixed Types Using NgFor And NgTemplateOutlet In Angular 9.0.0-rc.5
Posted on Dec 11, 2019 at 2:58 PM
@Ben, In your code, also in YouTube videos, the format of the text is adding more spaces after ( and before ) so (this) looks like ( this ) and it is much much better for the eye to read... but, I didnt find a way to do this with a formatter like Prettier. Thanks man !... read more »
-
Rendering A List Of Mixed Types Using NgFor And NgTemplateOutlet In Angular 9.0.0-rc.5
Posted on Dec 10, 2019 at 12:43 PM
@Ben , How do you format your code with the ( extra spaces inside ) ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 17, 2019 at 11:24 AM
Sorry for writing so much but this is very interesting.. I managed to selectInner and setInner values, but my problem is that when I setInner only the specific stream is being triggered, and not the parent public selectInner<K extends keyof StateType, S extends keyof StateType[K], T extends ke... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 17, 2019 at 9:59 AM
@Ben I managed to do something like that setInnerValue<K extends keyof StateType, S extends keyof StateType[K], T extends keyof StateType[K][S]>(newVal:any, mainKey: K, secKey: S, thirdKey?: T) { if(thirdKey) { let curr = this.state[mainKey][secKey]; curr[thirdKey] = newVal; ... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 17, 2019 at 9:26 AM
@Ben, Can It be more Generic ? Like you did with the select method ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 17, 2019 at 7:21 AM
@Ben , How can I setState for InnerValues ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 7, 2019 at 4:09 AM
@Ben, Thanks for your answers! another one ? :) what about sharing the subscription correctly ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 5, 2019 at 8:33 AM
@Ben, "Ultimately, I abandoned it because I am not a fan of having really deeply nested state. My applications have several stores -" So i guess I work just fine. Its just that sometimes the state becomes big with alots of fields.. How do you keep it small ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 4, 2019 at 11:16 AM
@Ben, Hey, since its not possible to edit, I just want to clear myself I look for something like .select('data.someInnerFieldOfData').subscribe() is this even possible ?... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 4, 2019 at 6:26 AM
@NSN, " now when I getState().select('HERE I GET ONLY data') " actually is .select('....') without getState() ofcourse.... read more »
-
Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10
Posted on Apr 4, 2019 at 4:30 AM
Hey, your implemantaion is great! Just a quick question ? how can I 'select' an INNER field of an object. lets say that I have a state export class GlobalState { data: IGlobal = INIT_DATA; constructor(data?) { this.data = data ? data : []; } } now when I getState().select('HERE I ... read more »