Display validation message with ng-messages based on multiple conditions
<p>I use angular ng-messages to display validation messages</p>

<p>Consider the following code:</p>

<pre><code>&lt;ul ng-messages="formToValidate.fieldToValidate.$error" ng-messages-multiple&gt;
    &lt;li ng-message="pattern"&gt;Invalid pattern&lt;/li&gt;
    &lt;li ng-message="minlength, maxlength"&gt;Should contain no less than 7 and no more than 100 chars&lt;/li&gt;
    &lt;li ng-message="!pattern &amp;&amp; !minlength &amp;&amp; !maxlength &amp;&amp; onlyAfterAllOtherPassedValidation"&gt;
        This validation message is shown only when all the other validations have passed and validation  fails on onlyAfterAllOtherPassedValidation
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I want to  show the last validation message only if all other validations have passed and validation  fails on onlyAfterAllOtherPassedValidation.
And I do not know whether it's possible at all to pass complex condition to ng-message 
Any suggestions as well as workarounds are welcomed as long as I still can use ng-messages</p>