Recently, I ran into a limitation with JSON.stringify with TypeScript classes that use inheritance. Using get/set in TypeScript with inherited classes results in the serialized output not containing the getter properties.
More LinkRamblings of a software developer..
posted on May 27, 2021 by long2know in JavaScript, typescript
Recently, I ran into a limitation with JSON.stringify with TypeScript classes that use inheritance. Using get/set in TypeScript with inherited classes results in the serialized output not containing the getter properties.
More Linkposted on April 5, 2017 by long2know in JavaScript
After my recent post on sorting within an Angular Component, I was chatting with another developer about JavaScript sorting. Some of my assumptions about data types and formats allow some edge cases to present themselves in the form of inaccurate sorting.
posted on November 16, 2016 by long2know in JavaScript, jQuery, plunker
Letting a user know that CapsLock is set can be a UI nicety. I needed this feature earlier today so I put together a demo.
posted on November 1, 2016 by long2know in angular, ASP.NET, JavaScript, WebApi
In an application that I’m currently working on, that deals with Sales data, there are instances when I need to apply date comparisons relative to a user’s local time. This is an interesting problem with which to deal.
posted on October 27, 2016 by long2know in JavaScript
Dates are pretty easy to manage with pure JavaScript. The other day though, I discovered a bug in a bit of date manipulating code.
posted on July 5, 2016 by long2know in angular, JavaScript, react, redux, Web
I’ve been reading up on Angular2, Redux, React and other various libraries and frameworks over the weekend.
I’m in the process of understanding what using Redux w/ an Angular2 app provides that using a singleton service doesn’t. But, it seems to be more about preference (imho) than real-world benefit. It may help tie into observable / push notifications to make state change detection between immutable / mutable objects more performant. However, I can see a benefit if one wants to swap out frameworks and allow their previous state management work across frameworks. It’s an interesting prospect from that perspective.
posted on June 30, 2016 by long2know in JavaScript, Microsoft
Earlier, I wanted to play around with Angular CLI, but my npm and node versions were out of date. The Angular CLI npm install would fail.
Fortunately, there is a straight-forward update method.
On github, the Microsoft team has placed a method for updating node through PowerShell:
https://github.com/felixrieseberg/npm-windows-upgrade
I was happy to stumble upon this on Github. After using the script in the recommended fashion, from an elevated PowerShell console, the Angular CLI npm installer worked without a hitch.
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install --global --production npm-windows-upgrade npm-windows-upgrade
posted on April 21, 2016 by long2know in angular, JavaScript
Quite a while back, I wrote a blog post that detailed how it’s possible to use a directive to determine when an Angular repeater is finished. My solution, like nearly every other solution I looked at has one major flaw. It’s only triggered on first render.
posted on March 24, 2016 by long2know in angular, codepen, JavaScript, plunker
Earlier this week, I needed a way to make users wait for a certain amount of time after performing an action on a web application. The Angular UI progress bar seemed like a fitting method to let the user know their wait time.
posted on December 17, 2015 by long2know in angular, codepen, JavaScript, node, plunker, Web
Continuing the discussion of integrating server-side validation with client-side validation, let’s check out a demo of this in action.
All of the Angular code for this demo has been moved to my general demo Github repository.