Input validation with $messages

Show what happens if we don't add the dependency and/or we don't include the code of the dependency!

<script src= "../angular/angular.min.js"></script>
<script src= "../angular/angular-messages.min.js"></script>
<script src= "form_messages.js"></script>

<div ng-app="DemoApp" ng-controller="DemoController">
  <form name="myForm">
      <div>Name: <input ng-model="name" name="name" required minlength="5" ></div>
      <div class="error" ng-messages="$error">
          <div ng-message="required">The name is required</div>
          <div ng-message="minlength">The name must be at least 5 characters long.</div>
   <div>Name: {{name}}</div>

.error {
    background: #FF6D6D;

angular.module('DemoApp', ['ngMessages'])
.controller('DemoController', ['$scope', function($scope) {