using ionic.platform.ready