Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy AngularJS Tutorials</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script> </head> <body ng-app=""> <h3>script Directive in AngularJS Tutorial</h3> <script type="text/ng-template" id="tempfile"> Content in the script directive </script> <a ng-click="currenttemp='tempfile'" id="temp-link">Click here to view content </a> <div id="temp-content" ng-include src="currenttemp"></div> </body> </html>
www.wikitechy.com © Copyright 2016. All Rights Reserved.