<!doctype html>
Ng-app>
<meta charset= "Utf-8"/>
<title>angular</title>
<script src= "Angular.js"/></script>
<body>
Your Name: <input type= "text" ng-model= "yourname " placeholder= "World" >
Hello {{Yourname | | | ' World '}}!
Hello {{' World '}}
</body>
Introduce angular.js to tag Ng-app inside HTML. The result of the output is Hello world.
Angular's two-way binding concept, binding ng-model= "Yourname",Plarceholder as the default value.
The input result of Hello {{' world '} is Hello world.
Note that the content marked with the double curly braces {{}} is the expression that is bound in the greeting, which is a simple string ' world '. Hey, this is the official wording. I got it straight here. Because this is my first study, write it down first.
Hello {{Yourname | | | The output of ' world '} is: When the text box defaults to world, the output is Hello world.
If you re-enter it, it will be updated in real-time to the text you entered, good magic.
Then learn angular.js together.
Beginner Angular.js