Angular Drag & Drop upload form

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 […]

Read More…

Angular cascading recursive selects from tree nodes

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 […]

Read More…

Multiple nested guards on one route

angular 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 […]

Read More…

Easy way to show/hide a password field in Angular

angular show or hide a field

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 […]

Read More…

Modal with generic content in Angular app

Angular add a modal with generic content

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, […]

Read More…