Coder Social home page Coder Social logo

bloggr-client's People

Contributors

tomdale avatar wagenet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bloggr-client's Issues

Create Post Feature

It would be nice to have a "Create Post" Feature added to the example that shows the ember way of doing this.

Error when loading deep link with live data

If you switch to using live data as the video shows, when you hit a "deep link" directly rather than navigating to it, you get an error.

Per the video, change the post route to...

App.PostsRoute = Ember.Route.extend({
  model: function() {
    return $.getJSON('http://tomdale.net/api/get_recent_posts/?callback=?').then(function(data) {
      return data.posts.map(function(post) {
        post.body = post.content;
        return post;
      });
    });
  }
});

Now go direct (don't navigate via the UI) to /index.html#/posts/875

You will see the following error in the console...

Error while loading route: 
ReferenceError {stack: (...), message: "posts is not defined"}

I thought that posts was a Promise?

How do you get around this in Ember.js ?

maintaining the state

I am new to Ember. I saw your video to start with. i have a question. For example a user comes and click on the post. Now he clicks on about. After that he comes back to the posts. Shouldn't he see the post opened that he clicked before going to about? The whole idea isn't the state of the template remain intact when you switch between templates?

Error handling: Out of bounds post ID leads to undefined exception

How to replicate:

  1. Click on "Posts" while in the main page.
  2. Click on one of the posts. This will cause the post to show up on the right side.
  3. In the address bar, change the post ID in the URL to an out-of-bounds post ID (i.e., the URL is of the form index.html#/posts/{id}, so change {id} to a post ID that doesn't correspond to any of the posts). Click enter.
  4. Refresh the page. This will case a blank page to appear, and the exception "a is undefined" is thrown by JavaScript.

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.