In the vast realm of programming languages, syntax dictates the structure and clarity of your code. While both TypeScript and JavaScript offer various syntactic constructs, “sugar syntax” refers to concise shortcuts that improve readability and maintainability. This article explores the key sugar syntax elements in these languages, equipping you to […]
Tag: Angular
Angular Drag & Drop upload form
Any file Angular upload form now wants its own drag & drop system, to be able to insert files by dragging them over the affected area.To do this with Angular we define a directive that manages the drop on a particular area of the page Immediately after create the component […]
Angular cascading recursive selects from tree nodes
Today we will see recursive selects from tree nodes.Nothing proves the saying “if you want something done right, do it yourself” better than recursion.Recursion is one of my favorite topics. When a function is recursive, it finds in itself the strength to solve a task. We can also see recursion […]
Modal with generic content in Angular app
Today we will see a way to add a modal with generic content in Angular, for web sites with many lists of resources, often even very complex.We can handle it like another “page” in router, allowing every content we need in it. This approach can be useful in cases where, […]
“Maybe you were looking for…” 404 page
Sometimes we see a useful tip when we search for a command or a page and we find a 404 “Not found” page or a “command not found” if we are from the command line.This behavior is given by an algorithm named: “Levenshtein distance algorithm”.This particular algorithm allows us to […]