Sunday, 9 April 2017

angular java script shows in browser

angular java script shows in browser.i tried all possible ways but still sucks

var myApp=angular.module("mod",[]);
myApp.controller("con", function($scope){
$scope.message = "hhhhhhhh";
});
<html ng-app="mod">
    <head>
        <script src="bower_components/angular/angular.js"></script>
        <script type="sample.js"></script>
        </head>
<body ng-controller="con">
<div>
 
</div>
</body>
 </html>


via imran

No comments:

Post a Comment