tfs - Initialize VSS.SDK from TS class -


i need initialize vss.sdk .ts class (outside html page). have analyzed examples microsoft , initialize under html page.is possible outside html page?

yes, outside html , put in javascript file or other (e.g. ts), add reference corresponding js file html page.

for example:

    vss.init(); $(document).ready(function () {     vss.notifyloadsucceeded();  });  <!doctype html> <html> <head>     <title>hello word</title>        <meta charset="utf-8" />     <script src="node_modules/vss-web-extension-sdk/lib/vss.sdk.js"></script>     <script src="scripts/vssinit.js"></script> </head> <body>     <!--<script type="text/javascript">         vss.init();     </script>-->      <h1>hello word</h1>     <!--<script type="text/javascript">         vss.notifyloadsucceeded();     </script>--> </body> </html> 

Comments

Popular posts from this blog

loops - Spock: How to use test data with @Stepwise -

amazon web services - S3 Pre-signed POST validate file type? -