title: Angular 5 ngx-imageviewer not working
body: <p>I am trying to add an image viewer canvas with zoom controls etc. <a href="https://github.com/hallysonh/ngx-imageviewer" rel="nofollow noreferrer">ngx-imageviewer</a> seems to provide what I need but I cannot get it to work as I get the following error when I try to do an AOT build with angular-cli</p>
  
  <blockquote>
    <p>'client:157 Error during template compile of
    'ImageViewerModule'Function calls are not supported in decorators but
    'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls
    'ɵmakeDecorator'.</p>
  </blockquote>
  
  <p>When I try running with JIT I get the following error</p>
  
  <blockquote>
    <p>'Error: StaticInjectorError[DomSanitizer]:<br>
    StaticInjectorError[DomSanitizer]: 
        NullInjectorError: No provider for DomSanitizer!'</p>
  </blockquote>
  
  <p>Has anyone been able to get this working or does anyone know of any other libraries that offer this kind of functionality? I only need it to support pngs</p>