Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7754863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:25:15+00:00 2026-06-01T12:25:15+00:00

Following the documentation, I am able to display the person object in the sayHelloView

  • 0

Following the documentation, I am able to display the person object in the sayHelloView. Now I am wondering how I can trigger the else condition to see the bindings in action. Is there a way to do delete the person using the browser console or am I barking up the wrong tree?

JsFiddle – http://jsfiddle.net/PhSRx/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:25:16+00:00Added an answer on June 1, 2026 at 12:25 pm

    You could have an action which sets the view’s person to null.

    So in your view template you’d have something like:

    <a href="#" {{action logout}}>Log out</a>
    

    When that’s clicked, it will trigger the logout method for the view and then you can set this.person to null:

    logout: function() {
        this.set("person", null);
    }
    

    I’ve forked your fiddle and updated it, also adding in a login action which sets the person so you can toggle between and see the bindings in action: http://jsfiddle.net/rlivsey/atzfx/

    Instead of the view handling logging in and out, you might want to delegate that out to a controller.

    Here’s a fiddle with an example of App.sessionController dealing with holding onto the current logged in person, and the view has a binding to the person so the template stays the same even though the architecture has changed – http://jsfiddle.net/rlivsey/QKa3N/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read the documentation and thought I'd be able to do the following.... map
I have followed the following documentation and I am having problems. I access the
Following MongoDB documentation example seems to be wrong. Any suggestion? a== 1 and a
I've been following the documentation at the resource below http://silex.sensiolabs.org/doc/providers/form.html But I get the
I'm following the documentation with an up to date automake (v1.12) but building still
I'm following the documentation here as I would like to add Actors to the
I have set up the OAuth request following the documentation for a Non-Google Service
By using the following tool oAuth Playground , and following the documentation Google Documents
I'm trying to use System.Data.Sqlite library, and I'm following the documentation about optimizing inserts
I'm trying to implement my first Spring MVC controller, following Spring documentation, some tutorials

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.