How to emit an event from parent to child component?
Usually we use @Output() and EventEmitter (from Angular/core) to emit an event to parent component. @Output() addTab = new EventEmitter<any>(); ...…
How to change (& disable default outline) border color on focus?
By clicking inside the input field or focus on the input field, how to change the border color? When the…
‘extend’ VS ‘implements’ in TypeScript
What is the difference between extends and implements ? class Media { format: string; } class Video extends Media {} class Image implements…
Using an SVG sprite icon system in Angular
I used to work with icon-fonts, much time. Lots of projects ( Site or applications) really need a system for…
Javascript: difference between Object & JSON
Many folks are confused about the difference between JSON and object literal because they have very similar syntax. Object literal…
How to use debounceTime in angular ?
debounceTime delays the values emitted by a source for the given due time. If within this time a new value arrives,…
Classes vs Interfaces in TypeScript
Classes and interfaces are powerful structures that facilitate not just object-oriented programming but also type-checking in TypeScript. A class is…
Difference between Library & Framework?
What is the difference between a Library and a framework? The two concepts are important but sometimes confusing for developers.…
How to import nodes libraries in TypeScript?
Scenario We currently require fs like this in node: const fs = require('fs'); but When we try to import libraries in a…
How to integrate Electron ipcRenderer into Angular app based on TypeScript?
Let´s say we want to use ipcMain / ipcRenderer on our project to communicate from Angular to Electron and back. The Electron side look…






