0

How do I open a document\pdf that is stored in my system through an angularjs project on a button click? It is fine even if it is opened outside the application with any document viewer.

1

1 Answer 1

0
   ng-click="window.open('full path & file name for pdf')" 

should do it.

You can also use:

    ng-click="window.open('full path & file name for pdf',_blank)" 

to open in a new tab.

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.