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
Angular is an open source framework for web application development, mainly developed by Google, based on typescript, a super-set of javascript.
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 […]
Multiple nested guards on one route
We may need multiple guards on one route in some situations. It may happen that sometimes a shared guard is needed between several components which however require further and different verifications.A possible solution in those cases may be to insert “matryoshka” Guards, making the focus of the work on one […]
Easy way to show/hide a password field in Angular
The most easy way to show/hide a password input field in Angular is to toggle a show/hide property. For both methods I will use the FontAwesome icon library but you are free to use the icons you prefer. You can choose between two simple recipes, one with click event and […]
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, […]