Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
angular 2 todo – 扎老铁
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
class="post-51909 post type-post status-publish format-standard hentry">

angular 2 todo

image uploader

multi image uploader

lock

loading 

message show config

点击放大

右上角删除

长按删除

<DataLoadBlock [loadHelper]="loadstate">

<button type="submit" [disabled]="ajaxOption.formGroup.invalid">submit</button>

—>

<formBUtton>

<ion-list>

  <ion-item>

    <ion-label>deviceType</ion-label>

    <

ion-select multiple="false"

                (ionChange)=" ajaxOption.formGroup.get(‘deviceTypeId’).setValue($event.id) ||  changeDeviceType($event)"

>

      <

ion-option *ngFor="let dt of deviceTypesAsync.data" [value]="dt"

                  [selected]="ajaxOption.formValue&&dt.id==ajaxOption.formValue.deviceTypeId"

>{{dt.name}}

      </ion-option>

    </ion-select>

    <input type="hidden" formControlName="deviceTypeId"/>

  </ion-item>

  <ion-item>

    <ion-label>name</ion-label>

    <ion-input formControlName="name" type="text"></ion-input>

  </ion-item>

</ion-list>

<DataLoadBlock [loadHelper]="loadstate">

<DataLoadBlock>

<AjaxForm [ajaxOption]="ajaxOption" [formGroup]="ajaxOption.formGroup">

Expression has changed after it was checked. Previous value: ‘undefined’. Current value: ‘false’.

Loader;

的 observable only next 支持,失败&重试的处理机制呢?

reset loader 支持

let ld = this.deviceStatusRefreshLoader;

ld.setLoader(() => {

  let obs = this.deviceStatusStorage.getDeviceStatus(key, isLatest);

  return obs;

});

ld.load();

表单除了编辑表单的整体数据加载,还有新增无须加载,但对于选择下拉框,等控件需要单独加载的加载中控制

<md-select  [loadHelper]=deviceTypesLoader” size="50"  formControlName="deviceTypeId" placeholder="请选择"           (change)="changeDeviceType($event.value,deviceTypesLoader.data)">

  <md-option [value]="null">请选择</md-option>

  <md-option *ngFor="let dt of deviceTypesLoader.data" [value]="dt.id">{{ dt.name }}</md-option>

</md-select>

对于表单值 的change检测&触发&订阅,应是基于 formGroup 对象的

而不是界面绑定的, 界面绑定是辅助

应为会有外部组件,直接修改 model 值的情况,这样绑定在 control 上的 change 事件就触发不了了

 

发表评论

电子邮件地址不会被公开。