0

In an Angular+Bootstrap app, I need to have a menu (fixed to the bottom, BTW) with some items. One of the items is supposed to replace the menu itself once clicked.

Think of:

---------------------------------------------
|   Option1 |   Option2 |   Select Number   |
---------------------------------------------

When the right menu item is clicked, the menu itself is replaced with something like this:

---------------------------------
|   <-  |   1   |   2   |   3   |
---------------------------------

Here, clicking the left arrow brings back the previous menu while clicking a number leads to a different flow.

My question: is having a boolean variable on the $scope and using ng-show & ng-hide the correct way to do this?

1 Answer 1

2

I would use ng-repeat to create the menu items and custom filter. it is more elegant.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.