d.setclass is not a function in ngMessages module
<p>In one of my angularjs pages, I am using ngMessages module for form validation. While loading that page I am getting folowing error in console.</p>

<p>"angular.js:9400TypeError: d.setClass is not a function
    at render (angular-messages.js:413)"</p>

<p>No idea why. Any help would be appreciated.</p>

<p>here is the HTML</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;div class="extranet-content"&gt;
    &lt;div class="container-list"&gt;
        &lt;form name="personalForm" ng-submit="personalForm.$valid &amp;&amp; saveUsers()" novalidate&gt;
            &lt;div class="list-header" ng-show="all_users.length &gt; 0"&gt;
                &lt;div class="row"&gt;
                    &lt;div class="col-xs-1"&gt;&lt;/div&gt;
                    &lt;div class="col-xs-1"&gt;
                        &lt;h3&gt;
                            Id
                        &lt;/h3&gt;
                    &lt;/div&gt;
                    &lt;div class="col-xs-3"&gt;
                        &lt;h3&gt;
                            Name
                        &lt;/h3&gt;
                    &lt;/div&gt;
                    &lt;div class="col-xs-3"&gt;
                        Login
                    &lt;/div&gt;
                    &lt;div class="col-xs-2"&gt;
                       Sign
                    &lt;/div&gt;
                    &lt;div class="col-xs-2"&gt;
                       password
                    &lt;/div&gt;
                    &lt;div class="col-xs-12"&gt;
                        &lt;div class="border"&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="list-content" ng-class="{ 'noHeader' : !all_users.length }"&gt;
                &lt;div class="row" ng-show="saveErrors.length &gt; 0" ng-repeat="error in saveErrors track by $index"&gt;
                    &lt;div class="col-xs-12"&gt;
                    &lt;/div&gt;
                    &lt;div class="col-xs-12"&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="row clearfix"
                     ng-repeat-start="user in all_users = (users | filter: searchUser) | orderBy : predicate:reverse track by $index"
                     ng-class="{ 'marginTop' : $first}"&gt;
                    &lt;div class="col-xs-1"&gt;                     
                    &lt;/div&gt;
                    &lt;div class="col-xs-1"&gt;&lt;/div&gt;
                    &lt;div class="col-xs-3"&gt;                    
                    &lt;/div&gt;
                    &lt;div class="col-xs-3"&gt;
                        &lt;input type="text" name="txtLogin" id="txtLogin_{{$index}}" ng-model="user.Login"&gt;
                    &lt;/div&gt;
                    &lt;div class="col-xs-2"&gt;
                        &lt;ng-form name="signForm"&gt;
                            &lt;input maxlength="7" type="text" name="txtSign" id="txtSign_{{$index}}" ng-model="user.Sign"
                                   required&gt;
                            &lt;span ng-messages="listFormSubmitted &amp;&amp; signForm.txtSign.$error" role="alert" class="error"&gt;
                                &lt;span ng-message="required"&gt;required&lt;/span&gt;
                            &lt;/span&gt;
                        &lt;/ng-form&gt;
                    &lt;/div&gt;
                    &lt;div class="col-xs-2"&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="row group" ng-repeat-end&gt;
                    &lt;div class="col-xs-12" ng-if="!$last"&gt;
                        &lt;div class="borderBottom"&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt; </code></pre>
</div>
</div>
</p>