Category: Angular

Create an Angular modular plugin

How to develop a Modular Plug-in For angular 4 Create Small Angular Application: 1. Install angular cli: Install angular-cli by running → npm install @angular/cli -g 2. Create a angular project: Run ng new MyLibrary to create a project, move to directory through cd MyLibrary,…

How To Add Flash Messages in AngularJS

Using Flash messages in AngularJS is simple with the help of messageCentermodule. To get started with, we will add JS file of messagecentermodule from http://ngmodules.org/modules/message-center . then we will inject this module in our current application module as follows: angular.module(‘myApp’, [‘ngRoute’, ‘myApp.filters’, ‘myApp.services’, ‘myApp.directives’, ‘myApp.controllers’,…