Angular Makes Things Like Word Count Easy As 1 2 3

<label>Remarks (optional)</label>
<input data-ng-maxlength=140 data-ng-model="remarks" name="remarks" type="text" maxlength="140" placeholder="A short description"></input>
<small><span data-ng-bind="140 - remarks.length" ng-trim="false"></span> chars remaining</small>
Advertisements

2 thoughts on “Angular Makes Things Like Word Count Easy As 1 2 3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s