小编syk*_*pro的帖子

是否可以在不设置Eclipse的情况下运行Android模拟器

是否可以在不设置Eclipse的情况下运行Android模拟器.我正在与一家为我提供.apk文件的承包商合作.我希望能在不设置整个测试环境的情况下运行它.

android android-emulator

8
推荐指数
1
解决办法
7967
查看次数

Check all checkboxes within a FormArray - Angular 2 Reactive Form

I have an angular 2 reactive form with a list of checkboxes that are data bound. This works fine, but now I need to add a button to check all checkboxes.

Heres how my FormGroup is configured:

  private buildForm() {
    this.groupForm = this._formBuilder.group({
      bookId: this._formBuilder.control(null),
      startDate: this._formBuilder.control(null),
      groupTotal: this._formBuilder.control(null),
      chapterGrouping: this._formBuilder.control("all"),
      groupChapters: this.buildChapters()
    });
  } 

  private buildChapters() {
    const chapters = this.chapters.map(chapter => {
      return this._formBuilder.control(chapter.selected)
    });
    return this._formBuilder.array(chapters);
  }
Run Code Online (Sandbox Code Playgroud)

Heres my HTML:

<div class="form-group">
    <label for="">Select chapters</label>
    <div *ngFor="let …
Run Code Online (Sandbox Code Playgroud)

typescript angular2-forms

5
推荐指数
1
解决办法
3006
查看次数