use this.$ instead of $ in component