Editar el código:
ver Resultados »
Inténtalo tú mismo - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
script
src
="/lib/angular-1.4.8.min.js"
>
<
/script
>
<
body
>
<
div
ng-app
=""
ng-init
="person={firstName:'John',lastName:'Doe'}"
>
<
p
>
The name is
{{ person.lastName }}
<
/p
>
<
/div
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <script src="/lib/angular-1.4.8.min.js"></script> <body> <div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}"> <p>The name is {{ person.lastName }}</p> </div> </body> </html>