vade vade - 4 months ago 7x
AngularJS Question

Can I use javascript library codes inside HTML file instead of referencing it?

Is it possible to copy and paste a javascript library's code inside a HTML file?

I asked because I'm trying to make an app that needs angularjs but due to restrictions at work, I cant reference it to an angularjs file externally regardless if its over the internet or intranet.

I appreciate your help.



Yes this is possible but very much not recommended.

This can be done the following way using the <script> tag:

    <p>This is HTML bla bla bla...</p>
<script type="text/javascript">
    //Put your JS code here