How to create posts continue reading


#1

how to create in index page continue reading posts… button after clicking open full content in posts page plz me…


#2

Hey - without posting more information it’s almost impossible to help you.

I suggest:

  • Showing what you’ve tried so far in your Route and template(s)
  • What version of Ember and/or Ember Data you’re using
  • What you’ve tried so far and/or what guides you’re following, if any

#3

this is my index template

Ember Show posts

      {{#each model as |post|}}
        <div class="container">
          <div class="panel panel-info">


              <div class="panel-heading"><h2>{{post.title}}</h2></div>

              <li>
              <div class='panel-body'>

                <h4>{{post.body}}</h4>
                  
              </div>
            </li>


        </div>
      </div>
      {{/each}}

    </ul>

  </div>

#4

this index route …i am using ember 2.0.0

export default Ember.Route.extend({

model(){

return this.store.findAll(‘post’);

}, if(char.length ===200) {

show content

} else {

continue reading

}

});