npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-icons

v1.0.11

Published

A collection of icon libraries to use in your angular apps

Downloads

169

Readme

angular-icons

A collection of icon libraries to use in your angular apps

GitHub version

Install

npm install angular-icons

You will also need to install the icon assets:

npm install ionicons
npm install material-design-icons
npm install open-iconic

Usage

The following icon libraries are supported by Angular Icons:

  • Iconic
  • Open Iconic
  • Ionicons
  • Material Icons

You can include an icon from one of the above libraries by using the provided directives:

  • ba-iconic
  • ba-open-iconic
  • ba-ionicon
  • ba-material-icon

Each of the directives has an icon attribute which can be used to easily load an icon:

  • <ba-iconic icon="thumb"></ba-iconic>
  • <ba-open-iconic icon="thumb-up"></ba-open-iconic>
  • <ba-ionicon icon="ios-thumbs-up"></ba-ionicon>
  • <ba-material-icon icon="thumb-up"></ba-material-icon>

Styling of the icons is provided as part of Angular Base Apps.

angularIcons.iconic (Module)

Iconic (Service)

You can use the IconicProvider to configure the default path to the iconic assets. The following methods exist:

  • setAssetPath(path) - sets the full path to the icons
    • useful if hosting the icons locally or if using a non-supported CDN
  • setCdn(cdn) - sets the CDN to use for the icons
    • the icons are hosted on the following CDNs: npmcdn (default), jsdelivr

ba-iconic (Directive)

A directive used to load an icon from Iconic. The directive has the following supported attributes:

  • icon-dir: changes the directory for the icons (default specified by Iconic service)
  • src: full path to the icon (including svg extension)
  • size: use the values small, medium, or large to size the icon (by default all iconic icons are responsive and will fill to fit their entire container)
  • dyn-icon: use this attribute to define the name of the icon using an expression
  • dyn-icon-attrs: use this attribute to define the icon attributes using an object

Each icon from iconic may also provide a set of attributes to further customize the icon. For instance the data-direction attribute can be used for the chevron icon to specify the direction of the chevron.

angularIcons.openIconic (Module)

OpenIconic (Service)

You can use the OpenIconicProvider to configure the default path to the open iconic assets. The following methods exist:

  • setAssetPath(path) - sets the full path to the icons
    • useful if hosting the icons locally or if using a non-supported CDN
  • setCdn(cdn) - sets the CDN to use for the icons
    • the icons are hosted on the following CDNs: npmcdn (default), jsdelivr

ba-open-iconic (Directive)

A directive used to load an icon from Open Iconic.

angularIcons.ionicons (Module)

Ionicons (Service)

You can use the IoniconsProvider to configure the default path to the ionicons assets. The following methods exist:

  • setAssetPath(path) - sets the full path to the icons
    • useful if hosting the icons locally or if using a non-supported CDN
  • setCdn(cdn) - sets the CDN to use for the icons
    • the icons are hosted on the following CDNs: npmcdn (default), jsdelivr

ba-ionicon (Directive)

A directive used to load an icon from Ionicon.

angularIcons.materialIcons (Module)

MaterialIcons (Service)

You can use the MaterialIconsProvider to configure the default path to the material icons assets. The following methods exist:

  • setAssetPath(path) - sets the full path to the icons
    • useful if hosting the icons locally or if using a non-supported CDN
  • setCdn(cdn) - sets the CDN to use for the icons
    • the icons are hosted on the following CDNs: npmcdn (default), jsdelivr

ba-material-icon (Directive)

A directive used to load an icon from Material Icons.