Sometimes we may have a long list of items or data in tabular form which is added on the component for users. In that case, adding a simple filter search bar can prove a boon for a user to filter the required set of information.
ng2-search-filter package provides a ready to use pipe filter to add search functionality nearly to any type of object data.
This package is very easy to use and implement.
Here we will look into the steps required to install the ng2-search-filter package and usage tutorial with some more tricks and tips. Continue reading Angular 7/8/9 | Search Pipe Filter using ng2-search-filter Quick Example Tutorial
It’s always a boon that Angular developers have some great packages which not only provide the required solution for behavior but also sometimes adds up to the value.
One of a package is @ng-select in our top list to convert traditional HTML select form control into an advanced selection component with many features:
- Search Filter
- Optimized for large values using Virtual Scroll
- Customized template for options
- Single and Multi-selection in form of Tags
- And many more…
Continue reading Angular @ng-select | Validation, Multiselection, Custom Property Binding and Checkboxes
Uploading media files like profile images or PDF or Word documents to the server via a web form is a common practice in data-centric applications.
In Angular application where data is sent via HTTP calls, we can easily convert images and docs to the Base64 string and send them to the server is using HTTP Post. After getting the Base64 string we can easily convert it to a real file and save at server disk with file name and path saved in the database. Continue reading Angular 7/8/9 | Input File Image/ File Upload to Base64 Tutorial by Example
Adding Asterisk to required fields on a form helps the user to quickly identify the required fields. Adding a star(*) is now an industrial standard that is required in almost every data-centric application consuming any kind of data.
For lengthy form it becomes a cumbersome job to add star sign to every form of control. Here we will discuss how to create a custom Angular 2+ directive to automatically add an asterisk(*) sign to required field controls like Input, Textarea, Radio, Checkboxes, and Select boxes.
Continue reading Angular 7/8/9 | Add ( Star *) Asterisk Sign to Required Fields using Custom Directive for Bootstrap Form
How about adding some powerful features to your traditional select box or drop-down controls from where a user can select single or multiple values.
ng-select package is widely used in Angular projects as it is very easy to install and features add up more on performance and make user interactions friendly.
Here we will discuss how to install and configure the ng-select component, also discuss its important features with examples. Continue reading Angular 7/8/9 | Single & Multiple Select using @ng-select Package Tricks and Tutorial
In Angular application, we may have a form where a user can upload documents in PDF formats and also can view and download the same in view mode.
By default when we add a link to PDF files in HTML, they open in a new tab from a user can download. This behavior is common in Chrome and Mozilla which are the most used web browsers.
In this tutorial, we will discuss how to force download PDF files in the user’s file systems when we click on a link instead of opening it in a new Tab. Along with that, we will also learn a bonus tip on how we can open a PDF file in tab starting from a specified page number. Continue reading Angular 7/8/9 | Download PDF Files in Browser Instead of Opening in New Tab Quick Solution
In this tutorial, we will learn how to create custom Directive in Angular Application and re-use them in different components and at different levels of module hierarchy.
Sometimes in large Angular applications, we may have a more complex structure of components where some of them may have their own modules and sub-modules or components. Continue reading Angular 7/8/9 How to Use Directives in other Modules on Child Components
Angular material tables provide the fully loaded table components in which we can easily add sorting, paging, filter like features without any much codding. It works like charm in real-world applications and provides a nice user-friendly user interface.
Sometimes our component may represent more than one grid of tabular data, in that case, it becomes a bit confusing on how to add more than one Angular material tables in a single component having respective sorting and pagination components. Continue reading Angular Material 8 | Adding Multiple Tables on Single Component Tutorial
In this tutorial, we will learn how to trigger click events on an element when we click outside of that element container in Angular.
We used to have a target element in JQuery using which we could have easily detected if the clicked element is the same element or its outside that element.
In Angular, we will use a nice package module called
ng-click-outside which provides a directive component to trigger click event when we click outside of an element with click event bindings. Continue reading Angular 7/8 | Hide Div on Click Ouside Angular Tutorial
In this tutorial, we will discuss another but popular Date and Time picker supported by Angular 2+ applications. It is well supported for Datepicker with integrated time picker and Range of date and time picker.
Here we will discuss its installation on a new Angular project and all possible features and scenarios which we come across in a real-world app. Continue reading Angular 7/8 | Owl Datepicker & Timepicker using Ng Pick Datetime Tutorial by Example