by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sviatoy
    @Sviatoy
    Hi
    Adrien Crivelli
    @PowerKiKi
    hey
    Steve Barman
    @seafoam6
    Hey people!
    Marwan Rabbâa
    @waghanza
    hi, is there any demo of ui-validate in action ?
    Adrien Crivelli
    @PowerKiKi
    Marwan Rabbâa
    @waghanza
    i mean form validation (format)
    Adrien Crivelli
    @PowerKiKi
    there is nothing else than the mentioned page
    Alex
    @atodicebear

    Hey could someone help me?

    //html
          <div class="form-group">
            <label for="newName" class="control-label">Key</label>
            <input type="text" class="form-control" placeholder="//Necessary" name="newName" ng-model="newName" ng-minlength="3" ng-maxlength="50" required ui-validate-async="'create(newName)'">
              {{createKeyForm.newName.$viewValue.length || 0}}|50</input>
            <p ng-show="createKeyForm.newName.$error.maxlength || createKeyForm.newName.$error.minlength" class="help-block">Minimal length 3 and Maximal length 50 allowed</p>
            <p ng-show="createKeyForm.newName.$touched && createKeyForm.newName.$invalid" class="help-block">Please Fill out</p>
            <p ng-show="createKeyForm.newName.$error.validatorAsync" class="help-block">This Key allready exists |</p>
          </div>
    //controller
    $scope.create = () => {
                  this.$http.post('/api/dict_keys', {
                    name: $scope.newName,
                    notice: $scope.newNotice,
                    user_id: this.currentUser()._id
                  })

    It Errors whole time with anything I put in. If its correct or not. Calling whole time the Async Error

    Chirigiu Corin
    @Corin_23_twitter
    Hello, quick question, I have an error with an unknown provider for uiValidateDirective, any thoughts on this?
    mentioning that it occurs after minifying only