我使用Instagram API从我的实时服务器看到此错误.
{
"Error":true,
"message":"Matching code was not found or was already used."
}
Run Code Online (Sandbox Code Playgroud)
我在这里已经阅读了一些清除缓存的建议,但这并没有解决问题.我也无法直接在Instagram网站上提交支持票,因为我在尝试提交票证时收到错误消息.
我想使用angular2数据绑定以编程方式更新TextField文本属性.从这里看起来我会在我的布局中设置[(ngModel)] ="email"然后在我的代码中添加一个属性电子邮件.使用当前设置,我可以在加载时更改文本属性,但是如果我尝试以编程方式从按钮更改文本属性,则单击对电子邮件的更改不会反映在视图的TextField文本属性中.
import { Component, OnInit } from '@angular/core';
import { User } from '../../shared/user/user';
import { LoginModel } from '../../model/login/login-model';
import { HttpService } from '../../services/http/http-service';
@Component({
selector:'login',
templateUrl:'pages/login/login.component.html',
providers: [HttpService]
})
export class LoginComponent implements OnInit {
email:string = "test@live.com";
user: User;
//model: LoginModel;
constructor(private _httpService: Httpservice) {
//this.model = new LoginModel();
this.user = new User();
} //default constructor
ngOnInit() {}
onButtonTap() {
//alert("onButtonTap clicked ");
//this._mpixService.register(this.model.user);
this.email = "Changed@live.com";
alert("onButtonTap clicked " + this.email);
} …Run Code Online (Sandbox Code Playgroud)