error with bootstrap-decorator.js from this repository
gagalago opened this issue · 1 comments
gagalago commented
When i use this file angular-schema-form/dist/bootstrap-decorator.min.js, I have no problem with angular-schema-form.
But when I use angular-schema-form-bootstrap/bootstrap-decorator.min.js, I can't see a form and I have this error in the console :
TypeError: Cannot read property 'copyValueTo' of undefined
at link (http://localhost:3000/assets/vendor/angular-schema-form/dist/schema-form-4aee7d719118262af610bdcbc6cf067f.js?body=1:2731:17)
at invokeLinkFn (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:8842:9)
at nodeLinkFn (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:8336:11)
at compositeLinkFn (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:7732:13)
at publicLinkFn (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:7612:30)
at boundTranscludeFn (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:7750:16)
at controllersBoundTransclude (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:8363:18)
at Object.ngIfWatchAction [as fn] (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:24127:15)
at Scope.$digest (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:15897:29)
at Scope.$apply (http://localhost:3000/assets/vendor/angular/angular-abcd1935ec4ee4d395925707de8fe838.js?body=1:16161:24) <input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight" ng-show="form.key" type="{{form.type}}" step="any" sf-changed="form" placeholder="{{form.placeholder}}" class="form-control {{form.fieldHtmlClass}} ng-pristine ng-untouched ng-valid ng-scope" id="{{form.key.slice(-1)[0]}}" sf-field-model="" ng-disabled="form.readonly" schema-validate="form" name="{{form.key.slice(-1)[0]}}" aria-describedby="{{form.key.slice(-1)[0] + 'Status'}}" ng-model="model['name']">
Anthropic commented
The new alphas will solve this and should work better anyway.