Skip to main content

Filip Bech-Larsen

Member since Jul 8, 2015

Recent Blog Comments By Filip Bech-Larsen

  • Template vs. ng-container For Grouping DOM Nodes In Angular 2.4.4

    Posted on Jan 26, 2017 at 2:13 AM

    For my future self, or anybody else that didn't understand the point right away... (and maybe Ben can confirm Im getting it right): The difference between using ng-container and just using a div (or any other element) is that it doesn't actually output/render any dom, while keeping the grouping of t... read more »

  • Understanding "Object Identity" With ngFor Loops In Angular 2 Beta 3

    Posted on Apr 20, 2016 at 2:27 AM

    trackBy tells angular how to determine what elements are the same, when a list is being altered... So if we have a list like [{ id:1, name:'john' },{ id:2, name:'paul' },{ id:3, name:'john' }] we can use the 'id' field to trackby. It has to be unique though, so if two names are the same, you cant... read more »

  • Thinking About Select Menu Components, Option Lists, One-Way Data Flow, And Angular 2

    Posted on Mar 16, 2016 at 2:44 AM

    I see your pain... Im curious to see what solution you ended up with and why?... read more »

  • Understanding "Object Identity" With ngFor Loops In Angular 2 Beta 3

    Posted on Feb 12, 2016 at 9:17 AM

    @Ben, Thanks for clearing that out. I totally get it now. (obviously I hadn't read your code well enough, and saw personIdentity as an object-key like in angular1, which obviously didn't make sense. Thanks for yet another great post... however, I wish you would use the typescript class syntax - ... read more »

  • Understanding "Object Identity" With ngFor Loops In Angular 2 Beta 3

    Posted on Feb 12, 2016 at 5:36 AM

    I still don't get it... My understanding is also that object identity is like the tripple equals operator, but 1x's equals() is exactly working around the fact that two identical objects are NOT the same identity. As in {name:'ben'} === {name:'ben'} => false So angular2 still has do some deep ... read more »

  • Encapsulating LocalStorage Access In AngularJS

    Posted on Aug 6, 2015 at 8:00 AM

    I like the idea of encapsulating the logic of LS, however I dont see the need to clear out LS on page load and rewrite again onUnload. If for some reason your browser crashes (or a new window with same page is opened) the data is gone. I think persisting should be done at interaction-time (or close... read more »

  • Consuming The Uniform jQuery Plugin In AngularJS

    Posted on Jul 8, 2015 at 2:04 AM

    Thanks for yet another great walktrough. I really enjoy the format of your blogs/videos. Thumbs up! I've been using uniformJS for its great styling capabilities for years, but when I switched to angular I started working on a project with the same styling-goal in mind. Thought you might find it int... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel