Giter VIP home page Giter VIP logo

Comments (5)

ademidun avatar ademidun commented on September 28, 2024

@jdailly If you don't have the backend API set up yet you can use myjson to mock API calls:

EDIT: THis is a temporary fix until you get the API set up and should be reverted back to the original before you merge with master.

Replace ${this.blogUrl}blog/${username}/${slug}/ in the following line with https://api.myjson.com/bins/6vnha

return this.http.get(`${this.blogUrl}blog/${username}/${slug}/`)

This video at 29:37 explains what is happening if you want more context.

This blog post with section titled Saving External Api Calls

from atila-angular.

ademidun avatar ademidun commented on September 28, 2024

Updated sample Api for blog post detail to use: https://api.myjson.com/bins/6vnha instead of https://api.myjson.com/bins/1f93ta.

So now (<any>res).blog will work:

from atila-angular.

ademidun avatar ademidun commented on September 28, 2024

@jdailly I realized there's a lot of code in the blog-detail page. Start by adding the side widgets to the essay-detail page first. It will make it easier for you to get familiar with the code.

Sample data can be found here https://api.myjson.com/bins/9sage
Taken from this API endpoint: https://atila-7.herokuapp.com/api/essay/essay/tomiwa/ivey-business-school-aeo2-application-2016/

from atila-angular.

ademidun avatar ademidun commented on September 28, 2024

@jdailly for testing with related items replace this.searchUrl + 'related-items/'+queryString with https://api.myjson.com/bins/134krm in the following Line:

return this.http.get(this.searchUrl + 'related-items/'+queryString)

The related items test Api can be found in this myjson bucket.

Check blog-post detail for an example of how to use related items:

<app-card-generic class="hide-on-small-and-down" [item]="item" [metadata]="{hideDescription: item.image}" [cardStyle]="{'height': '300px', 'overflow-y': 'hidden'}"> </app-card-generic>

from atila-angular.

ademidun avatar ademidun commented on September 28, 2024

The scholarship detail Api can be found in this myjson bucket.

The forum detail Api can be found in this myjson bucket.

The forum comments Api can be found in this myjson bucket.

from atila-angular.

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.