Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template can not found. #218

Open
Deimos620 opened this issue Aug 28, 2017 · 0 comments
Open

Template can not found. #218

Deimos620 opened this issue Aug 28, 2017 · 0 comments

Comments

@Deimos620
Copy link

Deimos620 commented Aug 28, 2017

I am using angular-modal-service as modal service of Angular based web application I am building.
Here is my code.

 ModalService.showModal({
            templateUrl: "views/modals/edit_report_draft.html",
            controller: "DraftReportController"
        }).then(function(modal){
            modal.element.modal();
            console.log("modal displayed");
        })

But, when I click the button to show up modal, keep getting this error:

http://localhost:8001/views/modals/edit_report_draft.html 404 (Not Found)

The path of modal template is relative path from angular application root folder.
Would you like to help me to fix this problem? It seems it requests template from the server, so should I config routing for this modal template?
I am using Angular v1.6

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

No branches or pull requests

1 participant