Getting an error in AngularJS? -
i creating app in angular , getting error: tried putting angularjs cdn in bottom well. not quite working.
here code well.
<!doctype html> <html> <head> <meta charset="utf-8"> <title>testing</title> <!-- angularjs --> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular.min.js"></script> <link href='https://fonts.googleapis.com/css?family=roboto:400,300,700' rel='stylesheet' type='text/css'> <!--bootstrap--> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous"> <!-- css --> <link href="style.css" rel="stylesheet" /> </head> <body ng-app="testapp"> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <h2>testing app</h2> </div> </nav> <form name="myform"> <label>search <input type="text" name="input" ng-model="" ng-pattern="" required ng-trim="false"> </label> </form>
module
var testapp = angular.module('testapp', []);
make sure include file script.js in html page , , if want see search inbox . use
form{ margin-top : 100px; }
in css file , see it
Comments
Post a Comment