This function won't work in IE, it shows syntax error. You should fix it. Otherwise you did great job thank you! :) https://github.com/bennadel/JavaScript-Demos/blob/bd02d860f41c30d85abc0b6d226e5f2df2b6461c/demos/dynamic-favicon-angular5/app/favicons.ts#L126