mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-08 17:11:02 +00:00
docs: syntax highlight auto bootstrap code example
This commit is contained in:
parent
3da441b580
commit
039041e3ae
1 changed files with 11 additions and 8 deletions
|
|
@ -5,14 +5,17 @@
|
|||
Angular initializes automatically when you load the angular script into your page that contains an element
|
||||
with `ng:app` directive:
|
||||
|
||||
<html ng:app>
|
||||
<head>
|
||||
<script src="angular.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
I can add: {{ 1+2 }}.
|
||||
</body>
|
||||
</html>
|
||||
<pre>
|
||||
<!doctype html>
|
||||
<html ng:app>
|
||||
<head>
|
||||
<script src="angular.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
I can add: {{ 1+2 }}.
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
From a high-level view, this is what happens during angular's automatic initialization process:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue