I am trying to use an external library in an Angular project. This is from the docs of https://github.com/bramstein/fontfaceobserver
If you're using npm you can install Font Face Observer as a dependency:
$ npm install fontfaceobserver
You can then require fontfaceobserver as a CommonJS (Browserify) module:
var FontFaceObserver = require('fontfaceobserver');
var font = new FontFaceObserver('My Family');
font.load().then(function () {
  console.log('My Family has loaded');
});
Library is imported using a require, but angular doesn't like that keyword. Is there some standard way of importing a library?


import 'fontfaceobserver', if Yourfontfaceobserverlocated innode_modulesfolder