How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • const heroForm = new FormGroup(
      {
        name: new FormControl(),
        alterEgo: new FormControl(),
        power: new FormControl(),
      },
      { validators: identityRevealedValidator }
    );
    
    Docs
    0
  • import { Component } from "@angular/core";
    import { FormGroup, FormControl } from "@angular/forms";
    
    @Component({
      selector: "app-profile-editor",
      templateUrl: "./profile-editor.component.html",
      styleUrls: ["./profile-editor.component.css"],
    })
    export class ProfileEditorComponent {
      profileForm = new FormGroup({
        firstName: new FormControl(""),
        lastName: new FormControl(""),
      });
    }
    
    Docs
    0
  • profileForm = new FormGroup({
      firstName: new FormControl(""),
      lastName: new FormControl(""),
      address: new FormGroup({
        street: new FormControl(""),
        city: new FormControl(""),
        state: new FormControl(""),
        zip: new FormControl(""),
      }),
    });
    
    Docs
    0
  • this.heroForm = new FormGroup({
      name: new FormControl(this.hero.name, [
        Validators.required,
        Validators.minLength(4),
        forbiddenNameValidator(/bob/i), // <-- Here's how you pass in the custom validator.
      ]),
      alterEgo: new FormControl(this.hero.alterEgo),
      power: new FormControl(
        this.hero.power,
        Validators.required
      ),
    });
    
    Docs
    0
  • import { Component } from "@angular/core";
    import { FormGroup, FormControl } from "@angular/forms";
    
    @Component({
      selector: "app-profile-editor",
      templateUrl: "./profile-editor.component.html",
      styleUrls: ["./profile-editor.component.css"],
    })
    export class ProfileEditorComponent {
      profileForm = new FormGroup({
        firstName: new FormControl(""),
        lastName: new FormControl(""),
        address: new FormGroup({
          street: new FormControl(""),
          city: new FormControl(""),
          state: new FormControl(""),
          zip: new FormControl(""),
        }),
      });
    }
    
    Docs
    0
  • ngOnInit(): void {
      this.heroForm = new FormGroup({
        name: new FormControl(this.hero.name, [
          Validators.required,
          Validators.minLength(4),
          forbiddenNameValidator(/bob/i) // <-- Here's how you pass in the custom validator.
        ]),
        alterEgo: new FormControl(this.hero.alterEgo),
        power: new FormControl(this.hero.power, Validators.required)
      });
    
    }
    
    get name() { return this.heroForm.get('name'); }
    
    get power() { return this.heroForm.get('power'); }
    Docs
    0
  • const heroForm = new FormGroup({
      name: new FormControl(),
      alterEgo: new FormControl(),
      power: new FormControl(),
    });
    
    Docs
    0
  • const heroForm = new FormGroup(
      {
        name: new FormControl(),
        alterEgo: new FormControl(),
        power: new FormControl(),
      },
      { validators: identityRevealedValidator }
    );
    
    Docs
    0
  • import { Component } from "@angular/core";
    import { FormGroup, FormControl } from "@angular/forms";
    
    @Component({
      selector: "app-profile-editor",
      templateUrl: "./profile-editor.component.html",
      styleUrls: ["./profile-editor.component.css"],
    })
    export class ProfileEditorComponent {
      profileForm = new FormGroup({
        firstName: new FormControl(""),
        lastName: new FormControl(""),
      });
    }
    
    Docs
    0
  • new FormControl("", { updateOn: "blur" });
    
    Docs
    0
  • profileForm = new FormGroup({
      firstName: new FormControl(""),
      lastName: new FormControl(""),
      address: new FormGroup({
        street: new FormControl(""),
        city: new FormControl(""),
        state: new FormControl(""),
        zip: new FormControl(""),
      }),
    });
    
    Docs
    0
  • this.heroForm = new FormGroup({
      name: new FormControl(this.hero.name, [
        Validators.required,
        Validators.minLength(4),
        forbiddenNameValidator(/bob/i), // <-- Here's how you pass in the custom validator.
      ]),
      alterEgo: new FormControl(this.hero.alterEgo),
      power: new FormControl(
        this.hero.power,
        Validators.required
      ),
    });
    
    Docs
    0
  • import { Component } from "@angular/core";
    import { FormControl } from "@angular/forms";
    
    @Component({
      selector: "app-name-editor",
      templateUrl: "./name-editor.component.html",
      styleUrls: ["./name-editor.component.css"],
    })
    export class NameEditorComponent {
      name = new FormControl("");
    }
    
    Docs
    0
  • import { Component } from "@angular/core";
    import { FormGroup, FormControl } from "@angular/forms";
    
    @Component({
      selector: "app-profile-editor",
      templateUrl: "./profile-editor.component.html",
      styleUrls: ["./profile-editor.component.css"],
    })
    export class ProfileEditorComponent {
      profileForm = new FormGroup({
        firstName: new FormControl(""),
        lastName: new FormControl(""),
        address: new FormGroup({
          street: new FormControl(""),
          city: new FormControl(""),
          state: new FormControl(""),
          zip: new FormControl(""),
        }),
      });
    }
    
    Docs
    0
  • ngOnInit(): void {
      this.heroForm = new FormGroup({
        name: new FormControl(this.hero.name, [
          Validators.required,
          Validators.minLength(4),
          forbiddenNameValidator(/bob/i) // <-- Here's how you pass in the custom validator.
        ]),
        alterEgo: new FormControl(this.hero.alterEgo),
        power: new FormControl(this.hero.power, Validators.required)
      });
    
    }
    
    get name() { return this.heroForm.get('name'); }
    
    get power() { return this.heroForm.get('power'); }
    Docs
    0
  • const heroForm = new FormGroup({
      name: new FormControl(),
      alterEgo: new FormControl(),
      power: new FormControl(),
    });
    
    Docs
    0
  • this.heroForm = new FormGroup({
      name: new FormControl(this.hero.name, [
        Validators.required,
        Validators.minLength(4),
        forbiddenNameValidator(/bob/i), // <-- Here's how you pass in the custom validator.
      ]),
      alterEgo: new FormControl(this.hero.alterEgo),
      power: new FormControl(
        this.hero.power,
        Validators.required
      ),
    });
    
    Docs
    0
  • ngOnInit(): void {
      this.heroForm = new FormGroup({
        name: new FormControl(this.hero.name, [
          Validators.required,
          Validators.minLength(4),
          forbiddenNameValidator(/bob/i) // <-- Here's how you pass in the custom validator.
        ]),
        alterEgo: new FormControl(this.hero.alterEgo),
        power: new FormControl(this.hero.power, Validators.required)
      });
    
    }
    
    get name() { return this.heroForm.get('name'); }
    
    get power() { return this.heroForm.get('power'); }
    Docs
    0
  • await fireEvent.touch(getByLabelText("username"));
    
    // Same as:
    await fireEvent.focus(getByLabelText("username"));
    await fireEvent.blur(getByLabelText("username"));
    
    Docs
    0
  • test("loads items eventually", async () => {
      // Click button
      fireEvent.click(getByText(node, "Load"));
    
      // Wait for page to update with query text
      const items = await findByText(node, /Item #[0-9]: /);
      expect(items).toHaveLength(10);
    });
    
    Docs
    0
  • test("movie title appears", async () => {
      // element is initially not present...
      // wait for appearance and return the element
      const movie = await findByText("the lion king");
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples