Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Johan Reitsma 48 posts 193 karma points
    Mar 17, 2020 @ 08:30
    Johan Reitsma

    Angular validation message (port of package to 8)

    I have got the following code. The problem with this is that the validation messages are already are shown before filling. I can't find any example of what I'm doing wrong right now.

    Can anybody give me a pointer how this now works in Umbraco 8 (in 7 this worked)

    Thanks alot.

    Code fragment:

    <tr ng-repeat="domain in track by $index">
                                    <input type="text" id="domain{{$index}}" name="domain{{$index}}" ng-model=""
                                           ng-pattern="/^(http(s)?:\/\/)(([\w-_]+((\.[\w-_]+)+)?)+)(\.[\w]+)?(:[0-9]+)?([\w-_\/]+)?$/i" />
                                    <span class="help-inline" val-msg-for="domain{{$index}}" val-toggle-msg="required">
                                        <localize key="Shield.Properties.Validation_Required">Required</localize>
                                    <span class="help-inline" val-msg-for="domain{{$index}}" val-toggle-msg="pattern">
                                        <localize key="Shield.Environment.Properties.Validation_DomainInvalid">Invalid Domain</localize>
                                    <span class="btn btn-danger" ng-click="$index, 1)" ng-if=" > 1 || === 1">
                                        <localize key="general_remove">Remove</localize>
Please Sign in or register to post replies

Write your reply to: