<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Ionicons - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Ionicons - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sat, 30 May 2026 22:26:25 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/ionicons/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to add Ionicons to your Angular 6 apps ]]>
                </title>
                <description>
                    <![CDATA[ By Adedoja Adedamola I have had to work on a lot of Angular apps recently and Font Awesome has literally tired me out. So I decided to use Ionicons off the popular Ionic framework. This post shows how to set up Ionicons on your Angular project. We wi... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-add-ionicons-to-your-angular-6-apps-7ee5a7b85dc2/</link>
                <guid isPermaLink="false">66c34ee0465d1b2f886ba419</guid>
                
                    <category>
                        <![CDATA[ Ionicons ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Angular ]]>
                    </category>
                
                    <category>
                        <![CDATA[ JavaScript ]]>
                    </category>
                
                    <category>
                        <![CDATA[ tech  ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Tutorial ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ freeCodeCamp ]]>
                </dc:creator>
                <pubDate>Tue, 06 Nov 2018 00:26:20 +0000</pubDate>
                <media:content url="https://cdn-media-1.freecodecamp.org/images/1*I_tQfo1PrAT_kum--QcNGw.jpeg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>By Adedoja Adedamola</p>
<p>I have had to work on a lot of <a target="_blank" href="https://angular.io/"><strong>Angular</strong></a> apps recently and Font Awesome has literally tired me out. So I decided to use <a target="_blank" href="http://ionicons.com/"><strong>Ionicons</strong></a> off the popular Ionic framework.</p>
<p>This post shows how to set up <a target="_blank" href="http://ionicons.com/"><strong>Ionicons</strong></a> on your Angular project. We will take the following steps:</p>
<ul>
<li>Install Angular CLI v6</li>
<li>Create a new Angular v6 app</li>
<li>Install Ionicons</li>
<li>Setup Ionicons for use on your Angular v6 app</li>
</ul>
<h4 id="heading-install-angular-cli-v6">Install Angular CLI v6</h4>
<p>This is pretty simple — you just install the latest Angular version via npm.</p>
<pre><code>npm install -g @angular/cli@latest
</code></pre><p>After that has been done, you then run a <code>ng --version</code> to check for the version of Angular you have installed. Make sure it is Angular CLI version of 6.0.0 and above, like below.</p>
<p><img src="https://cdn-media-1.freecodecamp.org/images/1*se1AfRueItoiUcswhitMEg.png" alt="Image" width="800" height="449" loading="lazy">
<em>Angular version check using ng — version</em></p>
<h4 id="heading-create-a-new-angular-v6-app">Create a new Angular v6 app</h4>
<p>At this point, you have installed the Angular CLI globally on your PC. Now you get to create a new Angular app. We use the <code>ng new name-of-my-incredible-app</code> command, it allows us to create an Angular application.</p>
<pre><code>ng <span class="hljs-keyword">new</span> my-ionicons-angular-app --style=scss
</code></pre><p>The SCSS bit is there to allow us to use SCSS. This takes a bit. When it is done, we then navigate to the newly created app.</p>
<pre><code>cd my-ionicons-angular-app
</code></pre><p>As soon as we are in the project directory, we can then start the development server.</p>
<pre><code>ng serve
</code></pre><p>This returns the following:</p>
<pre><code>** Angular Live Development Server is listening on localhost:<span class="hljs-number">4200</span>, open your browser on http:<span class="hljs-comment">//localhost:4200/ **</span>
</code></pre><p>Running the URL <a target="_blank" href="http://localhost:4200/">http://localhost:4200/</a> shows you your brand new app. If you see the screen below. You are good to go.</p>
<p><img src="https://cdn-media-1.freecodecamp.org/images/1*bNZu4fH_Yc3vevGy_SoZ0Q.png" alt="Image" width="800" height="449" loading="lazy">
<em>Default Angular Homepage</em></p>
<h4 id="heading-install-ionicons">Install Ionicons</h4>
<p>Like we did earlier, we use npm again to install Ionicons.</p>
<pre><code>npm install ionicons
</code></pre><h4 id="heading-setup-ionicons-for-use-on-your-angular-v6-app">Setup Ionicons for use on your Angular v6 app</h4>
<p>As soon as it installs, we need to tell angular where and how to load it. Best way to do it is inside our styles.scss file and you do this by adding the following lines:</p>
<pre><code>$ionicons-font-path: <span class="hljs-string">"~ionicons/dist/fonts"</span>;@<span class="hljs-keyword">import</span> <span class="hljs-string">"~ionicons/dist/scss/ionicons.scss"</span>;
</code></pre><p>It should be set up correctly at this point. You can edit your homepage file — app.component.html and using the font icon to add a new icon there like this: <code>&lt;i class="icon ion-md-heart"&amp;g</code>t; . You can also have a <a target="_blank" href="https://ionicons.com/"><strong>look at</strong></a> the Ionicons page for a list of icons there. Below is what my homepage looks like along with my app.component.html file.</p>
<p><img src="https://cdn-media-1.freecodecamp.org/images/1*STno4LND04VK8Ft1DLDClw.png" alt="Image" width="800" height="449" loading="lazy">
<em>Angular 6 homepage with an Ionicon</em></p>
<h4 id="heading-thats-that">That’s that!!</h4>
<p>Pretty easy. I hope you made it to the end. If you have any questions or you see something wrong or something that can be done better, please leave a comment below or you can message me on twitter <a target="_blank" href="https://twitter.com/TrussDamola"><strong>@TrussDamola</strong></a><strong>.</strong></p>
<p>Cheers!</p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
