angular-validator icon indicating copy to clipboard operation
angular-validator copied to clipboard

PROBLEM WITH nested $scope

Open MonrealRyan opened this issue 10 years ago • 4 comments

When i use this code

 $validator.validate($scope, 'mts.doc')

it always proceed in success promise although there are some required in my modules here the models

{
     id         : $scope.mts.doc.id,
     name       : $scope.mts.doc.name,
     role       : $scope.mts.doc.role,
     code       : $scope.mts.doc.code,
     Description: $scope.mts.doc.description,
     hierarchy  : $scope.mts.docHierarchy,
     acctEntryID: $scope.mts.acctEntry.id,
     acctEntry  : $scope.mts.acctEntry.name
}

HOPE YOU CAN HELP ME

MonrealRyan avatar Nov 13 '14 04:11 MonrealRyan

$validator.validate($scope, 'mts')

kelp404 avatar Nov 13 '14 04:11 kelp404

Still the same output... :(

by the way i use chosen instead of normal select tag...

does it affect the validator?

MonrealRyan avatar Nov 13 '14 04:11 MonrealRyan

the bug occur when the form was inside of the TABSET

MonrealRyan avatar Nov 13 '14 05:11 MonrealRyan

@kelp404 - this is my plunker regarding with the bootstrap-angular-ui.. hopew you can help me PLUNKER

MonrealRyan avatar Nov 25 '14 02:11 MonrealRyan