Angular template problem

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  support-swapna 11 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #530886 Reply

    smendes
    Participant

    I’m getting these errors:

    Identifier ‘codigoOrigem’ is not defined. ‘T’ does not contain such a member.
    Identifier ‘uf’ is not defined. ‘T’ does not contain such a member.
    Identifier ‘sigla’ is not defined. ‘T’ does not contain such a member.
    Identifier ‘descricao’ is not defined. ‘T’ does not contain such a member.

    Can you guys help me fix it?

    #530978 Reply

    support-swapna
    Moderator

    smendes,

    Are you working with nested For loop? There is a known issue with using nested For loops in angular html which is marked with ‘T’ does not contain such a member error. A bug is already filed for the dev team to work on it.

    If you are seeing the problem with a normal For loop then please share with us the component.ts code and the component.html code for further investigation.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #531002 Reply

    smendes
    Participant

    I’m not working with nested for loop.
    I’m using this library: angular2-datatable.

    Here is the component.ts code because I couldn’t upload it.

    • This reply was modified 1 year, 3 months ago by  smendes.
    • This reply was modified 1 year, 3 months ago by  smendes.
    • This reply was modified 1 year, 3 months ago by  smendes.
    Attachments:
    You must be logged in to view attached files.
    #531190 Reply

    support-swapna
    Moderator

    smendes,

    Thank you for sharing the code files. I see the validation errors with angular2-datatable in an Angular 4 project. I could not replicate the problem in an Angular 2 project.

    Can you please clarify if you are working with Angular 2 or Angular 4 project? The angular2-datatable is for Angular 2. Please recheck if the angular2-datatable also works with Angular >=4.0.0.

    Please also share with us the project’s package.json file to help us get an overview of your project.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #544064 Reply

    saihimaja
    Participant

    ERROR:

    <td *ngFor=”let formData of _FormData” formGroupName=”OverRideFG”>
    <div class=”form-elem form-group form-md-line-input padding-0″
    *ngIf=”_jobTaxYears.indexOf(formData?.Year) > -1″>
    <select class=”form-control” formControlName={{formData?.Year}}
    (change)=”saveValue()”>
    <option value=”1″>section A</option>
    <option value=”2″>Section B</option>
    </select>
    </div>
    </td>

    [Angular] Identifier ‘Year’ is not defined. ‘<anonymous>’ does not contain such a member

    i am unable to access json object key value in xyz.html page where ever for loop is using

    after converting from angular 2 to angular 5.

    My version details are :

    Angular CLI: 1.5.3
    Node: 7.4.0
    OS: win32 x64
    Angular: 5.0.2
    … animations, common, compiler, compiler-cli, core, forms
    … http, platform-browser, platform-browser-dynamic
    … platform-server, router

    @angular/cli: 1.5.3
    @angular/typescript: 2.0.0-5d0e199
    @angular-devkit/build-optimizer: 0.0.33
    @angular-devkit/core: 0.0.20
    @angular-devkit/schematics: 0.0.36
    @ngtools/json-schema: 1.1.0
    @ngtools/webpack: 1.8.3
    @schematics/angular: 0.1.5
    typescript: 2.6.1
    webpack: 3.8.1

    • This reply was modified 11 months, 3 weeks ago by  saihimaja.
    #544206 Reply

    support-swapna
    Moderator

    saihimaja,

    Sorry that you are seeing this issue. Thank you for the details. I could not replicate the problem with the code snippet provided and we need the complete code for further investigation.

    Can you please send us the zipped project excluding the node_modules folder to help us replicate the problem at our end?

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Angular template problem