Skip to content

FormGroup reset code example has a typo #12531

@digitaldrummerj

Description

@digitaldrummerj

I'm submitting a ... (check one with "x")

[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

At https://angular.io/docs/ts/latest/api/forms/index/FormGroup-class.html#!#reset-anchor the first code example has a semi-colon instead of a colon after last

this.form.reset({first: 'name', last; 'last name'});

Expected behavior

The code in https://github.com/angular/angular/blob/master/modules/%40angular/forms/src/model.ts would be updated with the correct code sample

this.form.reset({first: 'name', last: 'last name'});

Minimal reproduction of the problem with instructions

The current code example will not compile since it is invalid.

What is the motivation / use case for changing the behavior?

Have correct documentation

Please tell us about your environment:

  • Angular version: 2.0.X

  • Browser: [all]

  • Language: [all]

  • Node (for AoT issues): node --version =

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions