0

I have created a website using angularJS and a menu with ng-routing. Now I need to open up a modal which has navigation paths to load different content on the same modal. How can I accomplish this thing? can I use ng-view?

3
  • Do you have both routes without the modal and with the modal? Commented Mar 25, 2015 at 20:59
  • Can we have two types of routes in the same application? I only have route without the modal Commented Mar 25, 2015 at 21:07
  • Not really. My point was that do you have e.g. a/b/c which should show page without the modal and also page x/y/z which shows the content inside the router. Commented Mar 26, 2015 at 11:36

2 Answers 2

0

you could use a combination of ng-if and ng-include something like

<div ng-if="mode == 'grid'" ng-include="gridUrl">
Sign up to request clarification or add additional context in comments.

1 Comment

make some sense.can you please share a sample demo?
-1

I have added ng-include to the current view and then through the controller I have changed the necessary views according to the need.

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.