While writing the upcoming Part 2 of my Pluralsight course Building Apps with Angular and Breeze, I found myself wanting to extend a constructor object with another constructor’s members. I had an object called AbstractRepository that has a set of functions (ex: getAll, queryFailed) that could be shared by many repositories. I had a LookupRepository with its own functions that are very specific to getting “lookups”. The way I settled on was to extend the AbstractRepository’s functions onto the LookupRepository by setting the prototype’s constructor. The result is that the LookupRepository gets all the functions that it has plus the AbstractRepository’s functions too. This technique is something Ward Bell and...
- When npm tells you you're hosed
- The Pitch of Your Voice: Some tips to consider to make your story more engaging
- Show the Time to Read Your Markdown in VS Code
- 11 Awesome Resources for Building Your Applications in CI Using Azure DevOps Pipelines
- How I Write Online Articles
- Speed of Voice - The Pace of Your Presentation Can Heavily Impact How Well it Lands
- Recommended VS Code Extensions for Angular Developers