小编Sve*_*ich的帖子

Angular 2 http.get with params

我想在GET请求中发送查询参数.我的班级看起来像这样:

 @Injectable()
 export class Loader implements TranslateLoader{
  constructor(private http: Http){
   }
   getTranslation(lang: string): Observable<any>
   {
     return this.http.get(routes.Localization.Get) ;// in that place I need to pass params
   }
 }
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

http typescript angular

14
推荐指数
2
解决办法
5万
查看次数

如何禁用离子输入?

我怎么禁用ion-input

<ion-input type="text"></ion-input>
Run Code Online (Sandbox Code Playgroud)

我是Ionic Framework的新手,它与HTML非常相似,但是属性没有属性可以禁用它:

.prop("disabled", true)

typescript ionic-framework

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

typescript ×2

angular ×1

http ×1

ionic-framework ×1