this.http.get(url).map(this.extractData) 这个map方法报红啊
return this.http.get(url).map(this.extractData).catch(this.handleError);
我用的最新版本 nodejs 和 ionic .
还有一个问题,就是
tabMore.page.scss: tabMore 这个选择器找不到。去掉就就作用。
tabMore{
ion-title,.toolbar-title{
--background:#53a3ac !important;
--color:#red;
}
.sc-ion-card-md-h{
margin: 0;
width: 100%;
--background:rgb(245, 185, 185) !important;
--color:black;
}
ion-content{
--background:#eee !important;
}
}
TabMore.page.ts: 已经指明这选择器了。
@Component({
selector: 'tabMore',
templateUrl: 'tabMore.page.html',
styleUrls: ['tabMore.page.scss']
})
问题好多啊。麻烦老师解答
还有,最新ionic 没有Provider了,是不是用service 代替啊?我就是用Service代替的