<div ng-if="yes"> <script type="text/javascript" src="assets/js/jquery.min.js"></script> <script type="text/javascript" src="assets/js/jquery.dropotron.min.js"></script> <script type="text/javascript" src="assets/js/jquery.scrolly.min.js"></script> <script type="text/javascript" src="assets/js/jquery.onvisible.min.js"></script> <script type="text/javascript" src="assets/js/skel.min.js"></script> <script type="text/javascript" src="assets/js/util.js"></script> <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script type="text/javascript" src="assets/js/main.js"></script> <script type="text/javascript"> alert("Привет мир"); </script> </div> 

ng-if executes and inserts the scripts, but the scripts themselves are not executed, why, how to remake it to make everything work?

  • <div ng-if = "yes"> <script type = "text / javascript" src = "assets / js / main.js"> </ script> </ div> - arseniy mironov
  • 2
    In the world of the angulyar, the death penalty is what you do. - Vladimir Gamalyan
  • connect scripts at the top of the page - Grundy

0