ionic works