# Plugins - Angular / Material Design / Material Icons

**URL:** <https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092>\
**Category:** IIQ Discussion and Questions\
**Created:** [July 21, 2022, 5:17pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092 "2022-07-21T17:17:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle\_knox](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_knox/32/28684_2.png) [@kyle\_knox](https://developer.sailpoint.com/discuss/u/kyle_knox)\
**Post date:** [July 21, 2022, 5:17pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/1 "2022-07-21T17:17:07Z")

</div>

I’m a fairly competent SailPoint developer whose build a couple AngularJS plugins. I came across [this](https://community.sailpoint.com/t5/IdentityIQ-Wiki/Building-IdentityIQ-Plugin-Projects-with-Gradle-and-Angular-4/ta-p/78820) wiki guide a while back and wanted to have a go at developing an Angular full page plugin.

following the guide I have the plugin built and installed in my sandbox. The Material components are working ok but I’m having issues with the Angular Material CSS styles and Material Icons. The icons don’t seem to be getting included at all. I’ve included them in my page.xhtml like so:

```auto
<head> 
..
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
..
</head>

```

Regarding the Material design styling some of it seems to work ok and some of it seems to be getting overridden by IIQ’s included styling. I’m really not sure.

Has anyone tried doing this yet? Have you tried to use Angular Material components or Icons at all in your Angular plugins? I realize I’m pretty outside the box here so any help is appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![mikechung](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikechung/32/36607_2.png) [@mikechung](https://developer.sailpoint.com/discuss/u/mikechung)\
**Post date:** [August 22, 2022, 7:27am UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/2 "2022-08-22T07:27:10Z")

</div>

May I ask are you using TypeScript for plugin frontend compliation?  
Also, does the IIQ instance has internet connection to Google.

In my case, I am using TypeScript and Common Angular Material for plugin frontend design and implementaiton. The problem which need to be double check is that your IIQ instance should also have internet connection in order to load the icon.

---

<div class="post-metadata">

**Author:** ![kyle\_knox](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_knox/32/28684_2.png) [@kyle\_knox](https://developer.sailpoint.com/discuss/u/kyle_knox)\
**Post date:** [August 22, 2022, 2:17pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/3 "2022-08-22T14:17:32Z")

</div>

Yes I am using TypeScript. And IIQ has access to the internet.

I found the issue here is when I followed the advice to the guide I posted, and included the link to the icon / stylesheet in the of page.xhtml IIQ was ignoring it. I confirmed this by adding some very simple scripts to the head and they were ignored also. This is some querk of the IIQ plugin framework. I wasn’t sure how to fix that.

Although it is not considered best practice per HTML5 tags can also be added to the element. Once putting it there all of my styles and icons for the plugin worked perfectly.

I attached an example of what worked for me.  
[ex.page.xhtml.txt](https://developer.sailpoint.com/discuss/uploads/short-url/bxDFMK1EgQwLXosIZJkewRuWULd.txt) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![mikechung](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikechung/32/36607_2.png) [@mikechung](https://developer.sailpoint.com/discuss/u/mikechung)\
**Post date:** [August 22, 2022, 2:55pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/4 "2022-08-22T14:55:12Z")

</div>

Hello @kyle_knox,

Here is the example of my page.xhtml

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/e/ef2eb905494790bb94fb378e6f8d786f9862347b.png)

This works in my case. (Sorry for a lot revision on the reply… as there is a problem to post code in the reply box, I decided just paste with screenshot)

Best regards,  
Mike

---

<div class="post-metadata">

**Author:** ![kyle\_knox](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_knox/32/28684_2.png) [@kyle\_knox](https://developer.sailpoint.com/discuss/u/kyle_knox)\
**Post date:** [August 22, 2022, 3:08pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/5 "2022-08-22T15:08:25Z")

</div>

@mikechung

yeah thanks. This is pretty similar to mine now. I do see that you have included SailPointBundleLibrary.js. Are you able to get this working and use it in your Angular project? I decided not to use those assets for this plugin but am interested to know how to get it working.

---

<div class="post-metadata">

**Author:** ![mikechung](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikechung/32/36607_2.png) [@mikechung](https://developer.sailpoint.com/discuss/u/mikechung)\
**Post date:** [August 22, 2022, 3:20pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/6 "2022-08-22T15:20:23Z")

</div>

Yes. For me this is working. Once you include the link for Mat Icon it should work.  
Regarding the SailPointBundleLibrary.js, please describe more details on your use case.

---

<div class="post-metadata">

**Author:** ![kyle\_knox](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_knox/32/28684_2.png) [@kyle\_knox](https://developer.sailpoint.com/discuss/u/kyle_knox)\
**Post date:** [August 22, 2022, 4:35pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/7 "2022-08-22T16:35:56Z")

</div>

Since I saw you included the SailPointBundleLibrary I assumed you were using their modals or the identity selector etc. For my current use case I don’t need it. But was curious if you had done so. I’m not sure how to include those in my angular project (typescript).

---

<div class="post-metadata">

**Author:** ![mikechung](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikechung/32/36607_2.png) [@mikechung](https://developer.sailpoint.com/discuss/u/mikechung)\
**Post date:** [August 22, 2022, 6:07pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/8 "2022-08-22T18:07:38Z")

</div>

I am sorry that actually, I am not really sure to use the SailPointBundleLibrary directives (AngularJS) within Angular project. In my use case, I mainly use this since I would like to call PluginBaseHelper within Angular. For example:

```auto
declare const PluginHelper: {
  getCsrfToken: Function
  getPluginRestUrl: Function
  getCurrentUsername: Function
};
...
constructor(private http : HttpClient) {
    if (environment.production) {
      this.pluginUrl = PluginHelper.getPluginRestUrl('xxxx');
      this.iiqUrl = window.location.origin + "/" + window.location.pathname.split('/')[1];
      this.token = PluginHelper.getCsrfToken();
      this.currentUserName = PluginHelper.getCurrentUsername();
    } else {
      this.pluginUrl = 'http://xxxxxx:8080/identityiq/plugin/rest/xxxx';
      this.iiqUrl = 'http://xxxxxx:8080/identityiq';
      this.currentUserName = 'spadmin';
    }
  }

```

This is helpful especially for RESTful API calls.

Best regards,  
Mike

---

<div class="post-metadata">

**Author:** ![kyle\_knox](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kyle_knox/32/28684_2.png) [@kyle\_knox](https://developer.sailpoint.com/discuss/u/kyle_knox)\
**Post date:** [August 22, 2022, 8:07pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/9 "2022-08-22T20:07:16Z")

</div>

Ok ok. Still a good tip. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/plugins-angular-material-design-material-icons/5092/10 "2023-07-19T14:25:41Z")

</div>

Closed on July 19, 2023, 2:25pm UTC


