seema choudhary seema choudhary - 1 year ago 92
HTML Question

Why this angularjs code is not working?

This is my html code, and it's not giving the proper output. Ιt's not working by using

, that's why I use
. Βut still not working, although I use both the way to print the enter value. What is the mistake in this code?

Τhis is the output it's showing:




<!doctype html>
<html ng app>
<script src=""></script>
<body >
<label>first name:</label><input type="text" ng-model="firstname"/>
<label> last name:<input type="text" ng-model="lastname"/><br><br></label>
<h3>full name <span ng-bind="firstname"> </span> {{firstname}} </h3>


Answer Source

Just convert this

<html ng app>

to this

<html ng-app>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download