Code Monkey home page Code Monkey logo

ionic-material-icons's People

Contributors

danielsogl avatar ihadeed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ionic-material-icons's Issues

Can't use with interpolated / bind / variable or values

Hi, i can use this with a fixed value like <ion-icon md-name="settings"></ion-icon>, but it won't work with interpolated/bind values like <ion-icon [md-name]="variable"></ion-icon> or <ion-icon md-name="{{variable}}"></ion-icon>.

material icons are not appearing

I am not seeing material icons. The CSS properties of ion-icon were still showing from ionic. I inspect element and changed font-family to "material icons", it worked.

ion-icon {
display: inline-block;
font-family: "Ionicons";
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1;
text-rendering: auto;
text-transform: none;
speak: none;
}

HTML code

Can't see icons - showing text instead (lazy loading)

Hi, thanks for your work! I can't seem to see any icons (testing on a desktop). I am using lazy loading. Here is what I have so far:

package.json

 "config": {
              "ionic_copy": "./copy.config.js"
    },

cat copy.config.js

module.exports = {
  copyMaterialIcons: {
    src: ['{{ROOT}}/node_modules/ionic2-material-icons/fonts/**/*'],
    dest: '{{WWW}}/assets/fonts'
  }

ls www/assets/fonts/

MaterialIcons-Regular.eot	ionicons.ttf			noto-sans.scss			roboto-medium.ttf
MaterialIcons-Regular.ttf	ionicons.woff			roboto-bold.ttf			roboto-medium.woff
MaterialIcons-Regular.woff	ionicons.woff2			roboto-bold.woff		roboto-medium.woff2
MaterialIcons-Regular.woff2	noto-sans-bold.ttf		roboto-bold.woff2		roboto-regular.ttf
ionicons.eot			noto-sans-bold.woff		roboto-light.ttf		roboto-regular.woff
ionicons.scss			noto-sans-regular.ttf		roboto-light.woff		roboto-regular.woff2
ionicons.svg			noto-sans-regular.woff		roboto-light.woff2		roboto.scss

So looks like the config is ok.

app.module.ts

import { MaterialIconsModule } from 'ionic2-material-icons';

also added MaterialIconsModule to imports of app.module.ts

Now in foo.module.ts (where I need to use the ion)
I added

import { MaterialIconsModule } from 'ionic2-material-icons';

also added MaterialIconsModule to imports of foo.module.ts

Finally, foo.html

<ion-icon md-name="settings"></ion-icon> Hello

Here is what I see (the name settings, not the icon:
screen shot 2017-07-09 at 10 03 14 am

ionic-info:

ionic info

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 2.0.0
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.2.3 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.4.2

System:

    Node       : v8.1.2
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.0 
    ios-sim    : 5.0.2 
    npm        : 5.0.3 

Thanks

Unable to load icons with underscore

I'm unable to load icons that has an underscore, for example card_travel, I follow the steps of the repository but it's not working.

<ion-icon md-name="card_travel"></ion-icon>

Thanks for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.