Skip to content

Instantly share code, notes, and snippets.

@fastf0rward
fastf0rward / img.js
Created February 1, 2017 13:37
Ionic Img component dist - temporary workaround for loading issues
// WeSwitch - TEMP replacement for /node_modules/ionic-angular/components/img/img.js , in order to work around https://github.com/driftyco/ionic/issues/9660
// TODO - Angular 2.3.1 supports component inheritance. As soon as we have >= Angular 2.3.1 in this project, we should extend Ionic's Img component with these fixes instead of copy=pasting the file.
import { ChangeDetectionStrategy, Component, ElementRef, Input, NgZone, Optional, Renderer, ViewEncapsulation } from '@angular/core';
import { Content } from '../content/content';
import { DomController } from '../../platform/dom-controller';
import { isPresent, isTrueProperty } from '../../util/util';
import { Platform } from '../../platform/platform';
/**
* @name Img