Coder Social home page Coder Social logo

Comments (4)

shalugin avatar shalugin commented on August 22, 2024

from horizontal-timeline.

Pankesh88 avatar Pankesh88 commented on August 22, 2024

Thank you so much for your response.

Here is the code

In My service:

public getAllData(nms: string): Observable {
return this.http
.get(/api/toy/123);
}

In my component:

timeline: TimelineElements[]

//If I manually set the values here it works

ngOnInit() {
this._dataService.getAllData().subscribe(
data => {
this.timeline = data; // When loading data from here I get the error
},
err => console.error(err),
() => console.info('done loading data'),
);
}

from horizontal-timeline.

shalugin avatar shalugin commented on August 22, 2024

See #3 and #2 any my comment in #2 (comment)

from horizontal-timeline.

Pankesh88 avatar Pankesh88 commented on August 22, 2024

Thanks I was able to make it work by calling cdr change method after loading data.

from horizontal-timeline.

Related Issues (11)

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.