New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

material-icon

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-icon

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
38
11.76%
Maintainers
1
Weekly downloads
 
Created
Source

material-icon

Pre requisite

Need material design icons to install to make this package working

$ npm install material-design-icons --save

Add css file in to .angular-cli.json

"../node_modules/material-design-icons/iconfont/material-icons.css"

Installation

To install this library, run:

$ npm install material-icon --save

Consuming

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

import { AppComponent } from './app.component';

// Import your library
import { MaterialDesignIconModule } from 'material-icon';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    MaterialDesignIconModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<mdi [icon]="'copyright'" [size]="30"></mdi>

License

MIT © Chirag Patel

Keywords

angular

FAQs

Package last updated on 18 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts