Skip to content

Instantly share code, notes, and snippets.

@chrisgriffith
Created October 26, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisgriffith/83d7242f9970b79e893274cf7f1fa73d to your computer and use it in GitHub Desktop.
Save chrisgriffith/83d7242f9970b79e893274cf7f1fa73d to your computer and use it in GitHub Desktop.
floating ion-input with icon
import { Component } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
isLabelActive: Boolean = false;
constructor () { }
toggleIcon(evt) {
this.isLabelActive = !this.isLabelActive;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment