Harry Hancock

Harry Hancock


Angular tags input for Material Angular


Angular tags input based on Angular Material auto-complete and chips.

  • Library location : projects/ngx-mat-tag-input directory of this repository.
  • Working example location : projects/demo directory of this repository.


  • Working example location : projects/demo directory of this repository.
  • Stackblitz


npm i ngx-mat-tag-input


import { NgxMatTagInputModule } from 'ngx-mat-tag-input'
selector: ngx-mat-tag-input


Input Type Required Description
items array Optional Array of the auto-complete items
selectedTags array Optional Array of the selected items bu default
appearance MatFormFieldAppearance Optional The form-field appearance style.
readonly boolean Optional, default: false Whether the element is readonly.
placeholder string Optional The placeholder for this control.
displayBy string Optional Attribute’s name to display when items are Objects
isLoading boolean Optional, default: false When true, a spinner with be displayed in the suggested list


Output Description
reset Emits when when the user resets a form.
ngModelChange Emits when when the view model updates.
change Emits when the contents of the input have changed.
select Emits when the an item from the auto-complete list is selected.
focus Emits when the input receives focus.
touched Emits when the user touches the input.


  1. Import the NgxMatTagInputModule in your app module.

import { NgxMatTagInputModule } from 'ngx-mat-tag-input'

import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';

import {NgxMatTagInputModule} from 'ngx-mat-tag-input';

 declarations: [
 imports: [
 providers: [],
 bootstrap: [AppComponent]
export class AppModule {
  1. Use the input (NgxMatTagInput) in your component.
import {Component} from '@angular/core';

  selector: 'app-root',
    template: `
      <div class="container">
        <ngx-mat-tag-input #aa (change)="change($event)"
                           [items]="autoCompleteTags" [selectedTags]="selectedValues" appearance="outline"
                           placeholder="Search Javascript framework"></ngx-mat-tag-input>
  styleUrls: ['./app.component.scss']
export class AppComponent {
  public autoCompleteTags = ['Angular', 'React', 'VueJs', 'Meteor', 'Ember.js', 'Aurelia', 'Backbone.js'];
  public selectedValues = ['Angular'];

  change($event) {


Run ng build ngx-mat-tag-input to build the library. The build artifacts will be stored in the dist/ngx-mat-tag-input directory. Use the --prod flag for a production build.

Running unit tests

Run ng test ngx-mat-tag-input to execute the unit tests via Karma.

Download Details:

Author: adnanelamghari

Live Demo: https://ngx-mat-tag-input-demo.stackblitz.io/

GitHub: https://github.com/adnanelamghari/ngx-mat-tag-input

#angular #javascript #angularjs

What is GEEK

Buddha Community

Angular tags input for Material Angular

Ayyaz Zafar


Angular Material Autocomplete - Multiple Use Cases covered

Learn How to use Angular Material Autocomplete Suggestions Search Input. I covered multiple use cases.

Please watch this video. I hope this video would be helpful for you to understand it and use it in your projects

Please subscribe: https://www.youtube.com/channel/UCL5nKCmpReJZZMe9_bYR89w

#angular #angular-material #angular-js #autocomplete #angular-material-autocomplete #angular-tutorial

Christa  Stehr

Christa Stehr


Install Angular - Angular Environment Setup Process

Angular is a TypeScript based framework that works in synchronization with HTML, CSS, and JavaScript. To work with angular, domain knowledge of these 3 is required.

  1. Installing Node.js and npm
  2. Installing Angular CLI
  3. Creating workspace
  4. Deploying your First App

In this article, you will get to know about the Angular Environment setup process. After reading this article, you will be able to install, setup, create, and launch your own application in Angular. So let’s start!!!

Angular environment setup

Install Angular in Easy Steps

For Installing Angular on your Machine, there are 2 prerequisites:

  • Node.js
  • npm Package Manager

First you need to have Node.js installed as Angular require current, active LTS or maintenance LTS version of Node.js

Download and Install Node.js version suitable for your machine’s operating system.

Npm Package Manager

Angular, Angular CLI and Angular applications are dependent on npm packages. By installing Node.js, you have automatically installed the npm Package manager which will be the base for installing angular in your system. To check the presence of npm client and Angular version check of npm client, run this command:

  1. npm -v

Installing Angular CLI

  • Open Terminal/Command Prompt
  • To install Angular CLI, run the below command:
  1. npm install -g @angular/cli

installing angular CLI

· After executing the command, Angular CLI will get installed within some time. You can check it using the following command

  1. ng --version

Workspace Creation

Now as your Angular CLI is installed, you need to create a workspace to work upon your application. Methods for it are:

  • Using CLI
  • Using Visual Studio Code
1. Using CLI

To create a workspace:

  • Navigate to the desired directory where you want to create your workspace using cd command in the Terminal/Command prompt
  • Then in the directory write this command on your terminal and provide the name of the app which you want to create. In my case I have mentioned DataFlair:
  1. Ng new YourAppName

create angular workspace

  • After running this command, it will prompt you to select from various options about the CSS and other functionalities.

angular CSS options

  • To leave everything to default, simply press the Enter or the Return key.

angular setup

#angular tutorials #angular cli install #angular environment setup #angular version check #download angular #install angular #install angular cli

Monty  Boehm

Monty Boehm


Angular Material 12 File Upload Example with Progress Bar

In this tutorial, I will show you way to build an Angular Material 12 File upload to Rest API example using HttpClient, FormData and Progress Bar.

More Practice:

–  Angular Material 12 Image upload with Preview example

–  Angular 12 + Spring Boot: File upload example

–  Angular 12 + Node.js: File Upload example

–  Angular 12 Login and Registration example with JWT & Web Api

–  Angular 12 CRUD Application example with Web API

–  Angular 12 Form Validation example (Reactive Forms)

– Bootstrap instead:  Angular 12 File upload example with progress bar & Bootstrap

#angular #angular #angular 12 #angular material #file

Clara  Gutmann

Clara Gutmann


Angular 10 Material Table with Pagination, Filtering, Sorting

Angular material table is an inbuilt component that can be used to create a table where the user can searching, sorting, filtering, and paging rows. We use Angular 10 and Angular 10 Material for this demo example.  Angular Material is the ground running with significant, modern UI components that work across the web, mobile, and desktop applications.

Angular Material components will help us to construct attractive UI and UX, consistent, and functional web pages and web applications while keeping the modern web design principles like browser portability and compatibility. In today’s post, we will use the table component in the Angular Material library. So let us start an Angular 10 Material Table Example For beginners.

Angular material table

First, install an Angular 10**.** We are using Angular CLI version 10 to install the Angular. Right now, Angular 10 is the latest version. So if you have not installed Angular CLI, then install it using the following command. It will install the Angular CLI 8 because right now, it is the latest version, and from that, you will install Angular 10.

#angular #angular 10 #angular material #angular cli

Modesto  Bailey

Modesto Bailey


Let's implement a Theme Switch like the Angular Material Site

Learn how to implement a Theme Picker from scratch, for your Angular App. This is a beginners guide and you’ll get to know the best practices you should follow along the way.

This article is mainly intended for beginners. I’ve added a TL;DR; below as a precautionary measure, in case you’re a more advanced Angular Developer. Please feel free to navigate to a section that is most interesting to you.

#angular #angular9 #angular-material #material-design #angular-cli