Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

how to select a selected item? #273

Open
ghost opened this issue Sep 10, 2014 · 1 comment
Open

how to select a selected item? #273

ghost opened this issue Sep 10, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 10, 2014

Hi,

Sorry but can't seem to find how to select(click) a item that has been selected.

I have my list, I select an item, then it displays as it should, now I'd like to be able to select that item with a click. On that event I want to style the selected item differently. Unfortunately i can't find the event that permits to do that

Any directions would be most welcome.

thanks

@JesusMurF
Copy link

I have the same question, have you resolved it? thanks.

EDIT: Finally I have found the solution, you have to instanciate the empty object within the controller. Because before this, the object doesn't exist.

$scope.nameOfTheModel = {};  // Need to instantiate model within controller.

Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant