Git Product home page Git Product logo

Comments (6)

VadimDez avatar VadimDez commented on August 23, 2024

Could you show how gameProvider.game.teams looks like?

from ngx-order-pipe.

erperejildo avatar erperejildo commented on August 23, 2024

screen shot 2018-02-11 at 18 06 46

from ngx-order-pipe.

VadimDez avatar VadimDez commented on August 23, 2024

First of all doing orderBy: 'team.points' won't work anyways, try:

<div *ngFor="let team of gameProvider.game.teams | orderBy: 'points': true">
  {{ team | json }}
</div>

from ngx-order-pipe.

erperejildo avatar erperejildo commented on August 23, 2024

I also tried that but same error.

Using Angular 5 with Ionic 3 if that matters

from ngx-order-pipe.

erperejildo avatar erperejildo commented on August 23, 2024

@VadimDez any update on this?

This might help: https://blog.angularindepth.com/everything-you-need-to-know-about-the-expressionchangedafterithasbeencheckederror-error-e3fd9ce7dbb4

I also tried it out with a different model and it works (?)

from ngx-order-pipe.

erperejildo avatar erperejildo commented on August 23, 2024

Solved using this way:

import { ChangeDetectorRef } from '@angular/core';

constructor(private cdRef:ChangeDetectorRef) {
  }

ngAfterViewInit() {
    this.teams = this.gameProvider.game.teams;
    this.cdRef.detectChanges();
  }

<ion-card *ngFor="let team of teams | orderBy: 'points':true; let i = index">

from ngx-order-pipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.