Socket
Socket
Sign inDemoInstall

angular-entypo

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-entypo

Angular Component for Entypo Fonts


Version published
Maintainers
1
Created

Readme

Source

angular-entypo

Build Status

npm

Usage

  1. Include the Entypo Font.

Option A: Use the font hosted by jsdelivr:

@font-face {
    font-family: 'entypo';
    src: url('https://cdn.jsdelivr.net/gh/derektbrown/angular-entypo@1.0.0/fonts/entypo.eot');
    src: url('https://cdn.jsdelivr.net/gh/derektbrown/angular-entypo@1.0.0/fonts/entypo.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.jsdelivr.net/gh/derektbrown/angular-entypo@1.0.0/fonts/entypo.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/derektbrown/angular-entypo@1.0.0/fonts/entypo.ttf') format('truetype'),
         url('https://cdn.jsdelivr.net/gh/derektbrown/angular-entypo@1.0.0/fonts/entypo.svg#EntypoRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

Option B: Download the font and include it manually.

  1. Install the angular-entypo package from npm.

  2. Import the AngularEntypoModule and declare the AngularEntypoComponent like so:

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

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

//  |  DOWN HERE
//  V
import { AngularEntypoModule, AngularEntypoComponent } from 'angular-entypo';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularEntypoModule // <-- AND AGAIN HERE
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

  1. Use it to create icons:

<entypo name="phone"></entypo>
<entypo name="github"></entypo>

<!-- Also supports some font-awesome style transforms: !-->
<entypo name="github" flip="vertical" scale="3"></entypo>

Keywords

FAQs

Last updated on 18 May 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc