[AngularJS]1. Fisrt App, ng-app, Exprection{{}}
Create a Module named gemStore
so we can get started on this marketing journey.
Attach the gemStore
module to our HTML page with a Directive.
In index.html
, create a simple Expression to display a friendly "Hello, Angular!" message.
<!DOCTYPE html> <html ng-app = 'gemStore'> <head> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> <script type="text/javascript" src="angular.min.js"></script> <script type="text/javascript" src="app.js"></script> </head> <body> <h1>{{"Hello, Angular!"}}</h1> </body> </html>
var app = angular.module('gemStore',[]);