Giter VIP home page Giter VIP logo

Comments (17)

andrucz avatar andrucz commented on June 14, 2024

Hello Felipe. Could you please check if there is any error in the console when the problem happens?

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

@andrucz nop, thats works fine, hasn't any error, until the rate is updating in the console. the problem is the view that dont update

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

screen shot 2017-12-05 at 08 51 35

@andrucz

from ionic2-rating.

andrucz avatar andrucz commented on June 14, 2024

I remember doing something like that and it worked. Could you isolate this problem and share the code with me?

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

Can I put some parts of code here? @andrucz

from ionic2-rating.

andrucz avatar andrucz commented on June 14, 2024

Sure. Let me know how the variables are created, how you make the transitions between pages, etc

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

evaluate.html

<form (ngSubmit)="rateService()" #loginForm="ngForm">

    <div class="evaluate-item">
      <h4>Atendimento</h4>
      <rating [(ngModel)]="rateDate.attendance"
        readOnly="false"
        max="5"
        emptyStarIconName="checkmark-circle-outline"    
        starIconName="checkmark-circle"
        nullable="false"
        name="attendance">
      </rating>
    </div>

    <div class="evaluate-item">
      <h4>Preço</h4>
      <rating [(ngModel)]="rateDate.price"
        readOnly="false"
        max="5"
        emptyStarIconName="checkmark-circle-outline"    
        starIconName="checkmark-circle"
        nullable="false"
        name="price">
      </rating>
    </div>

    <div class="evaluate-item">
      <h4>Qualidade do Serviço</h4>
      <rating [(ngModel)]="rateDate.quality"
        readOnly="false"
        max="5"
        emptyStarIconName="checkmark-circle-outline"    
        starIconName="checkmark-circle"
        nullable="false"
        name="quality">
      </rating>
    </div>
   
    [.....]

    <div class="evaluate-button">
      <button class="pa-button button-blue-dark" type="submit">
        Avaliar
      </button>
    </div>

  </form>

evaluate component

export class ServiceEvaluateNowComponent { 
  rateDate:any = {};

  constructor(private nav: NavController) { }

  public rateService() {
    console.log('rateDate', this.rateDate);
  }

}

evaluate module

import { NgModule } from '@angular/core';
import { SharedModule } from './../../../app/shared/shared.module';
import { ServiceEvaluateNowComponent } from './service-evaluate-now.component';
import { Ionic2RatingModule } from 'ionic2-rating';

@NgModule({
  imports: [
    SharedModule,
    Ionic2RatingModule
  ],
  declarations: [
    ServiceEvaluateNowComponent    
  ],
  entryComponents: [
    ServiceEvaluateNowComponent
  ],
  exports: [
    ServiceEvaluateNowComponent
  ]
})

export class ServiceEvaluateNowModule { }

app component

@Component({
  templateUrl: 'app.html'
})
export class MyApp {

  rootPage:any = LoginComponent;
  @ViewChild(Nav) nav: Nav;
}
......

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

in the preview page I only do a nav.push to the evaluate page

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

I declare the rating component in the evaluate module ServiceEvaluateNowModule and declare in the app.module

from ionic2-rating.

andrucz avatar andrucz commented on June 14, 2024

Ok. I will take a look as soon as possible. I am at office right now.

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

ok, thanks very much @andrucz

from ionic2-rating.

andrucz avatar andrucz commented on June 14, 2024

@felipel90 I've just created an application following the problem description: https://github.com/andrucz/ionic2-rating-issue29

It seems like it's working, no matter what I set as the root page.

Could you please clone that repo, test and see if I am missing some detail?

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

yep, I'll test, and return you, tks

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

this is the same way that I done. But doesn't work again! :(

Can you pass your email? I can share my code with you there.

from ionic2-rating.

andrucz avatar andrucz commented on June 14, 2024

Do you mean that the example worked or not? Sorry, I didn't get It.
Sure. [email protected]

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

@andrucz the example Works fine. I'll contact you.

from ionic2-rating.

felipelopes6 avatar felipelopes6 commented on June 14, 2024

I fixed it, the problem was the map in the previous view.

from ionic2-rating.

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.