Comments (10)
awesome! We're happy to get help. I just answered the same question here: json-schema-form/angular-schema-form#506 (comment)
TL:DR;
Start doing a form type that's missing by looking on how it's done in the new bootstrap decorator: https://github.com/Textalk/angular-schema-form-bootstrap
You can do a "work-in-progress" PR to let us all know what you're working on and to get early feedback :)
from angular-schema-form-material.
Thought it would be a good start using the develop branch of this repo but getting an error just by trying whats already there...
it looks like decorator isn't defined..
Line 199 in builder.js
TypeError: Cannot read property 'text' of undefined
at http://localhost:8000/js/vendor.js:80060:30
at Array.reduce (native)
at angular.module.provider.sfPathProvider.$get.build (http://localhost:8000/js/vendor.js:80053:13)
at Object.angular.module.provider.sfPathProvider.$get.sfPath.build (http://localhost:8000/js/vendor.js:80130:16)
at angular.module.directive.sfBuilder.link.internalRender (http://localhost:8000/js/vendor.js:82346:44)
at angular.module.directive.sfBuilder.link.render (http://localhost:8000/js/vendor.js:82308:13)
at Object.<anonymous> (http://localhost:8000/js/vendor.js:82391:13)
at Scope.parent.$get.Scope.$digest (http://localhost:8000/js/vendor.js:15818:40)
at Scope.parent.$get.Scope.$apply (http://localhost:8000/js/vendor.js:16097:24)
at done (http://localhost:8000/js/vendor.js:10546:47)
from angular-schema-form-material.
@marvinosswald that strange... I tried the demo example/material-example.js
just to make sure and it works (To try it out first checkout the material repo, do a bower install
and start up a server, like http-server
)
How do you include ASF and the material decorator? In what order?
from angular-schema-form-material.
@davidlgj pretty sure it's because how i wire my angular app.. got a new error
using (installed with bower):
- angular-schema-form#development (if I use the normal master branch it just uses the bootstrap-decorator)
- https://github.com/Textalk/angular-schema-form-material.git#develop
[Error] Error: undefined is not an object (evaluating 'decorator[f.type]')
http://localhost:8000/js/vendor.js:80060:30
reduce@[native code]
build@http://localhost:8000/js/vendor.js:80053:19
build@http://localhost:8000/js/vendor.js:80130:21
internalRender@http://localhost:8000/js/vendor.js:82346:49
render@http://localhost:8000/js/vendor.js:82308:27
http://localhost:8000/js/vendor.js:82391:19
$digest@http://localhost:8000/js/vendor.js:15818:43
$apply@http://localhost:8000/js/vendor.js:16097:31
done@http://localhost:8000/js/vendor.js:10546:53
completeRequest@http://localhost:8000/js/vendor.js:10744:15
requestLoaded@http://localhost:8000/js/vendor.js:10685:24
(anonyme Funktion) (vendor.js, line 12477)
(anonyme Funktion) (vendor.js, line 9246)
$digest (vendor.js, line 15844)
$apply (vendor.js, line 16097)
done (vendor.js, line 10546)
completeRequest (vendor.js, line 10744)
requestLoaded (vendor.js, line 10685)
from angular-schema-form-material.
Right now the material decorator re-uses the same module as ASF (which it probably shouldn't) so you need to include it after ASF or else it has no module.
from angular-schema-form-material.
thought i would do so but maybe is gulp mixin stuff up..
And I think angular-schema-form-material should have the development branch of ASF as dependency because otherwise bootstrap-decorator is still included, don't you think ?
from angular-schema-form-material.
got it :D indeed it was gulp mixing stuff up
from angular-schema-form-material.
Awesome!
It's just a temporary thing that you get the old bootstrap decorator. I'm gearing up for a new release with it removed. Just need to get the docs in order. And I wouldn't want to give the impression that you need the development branch of ASF to use the material decorator. Also the development branch is a bit unstable sometimes and should be used for development only.
from angular-schema-form-material.
@davidlgj alright then 👍
from angular-schema-form-material.
I assume this is sorted now so I'll close the issue, let @davidlgj or I know if you need more help with it.
from angular-schema-form-material.
Related Issues (20)
- angular-material: breaking formatting changes HOT 2
- Understanding how to present the user with the ng-message HOT 4
- Release NPM HOT 3
- Bower registry problem HOT 5
- Datepicker always invalid HOT 6
- Inacurate textarea maxlength error HOT 2
- Some elements cannot be flex containers HOT 1
- Error message issues - with fixes
- Checkbox not rendering correctly on load HOT 3
- How to extend this decorator HOT 2
- model with previus data not showing correctly HOT 4
- Form Action Buttons not responding to onClick HOT 2
- Validation error messages are not displayed.
- Inputs doesn't show model values until click in input HOT 1
- Form Action Button "onClick" not responding to method in component.
- md-datepicker
- md-select: dynamic options
- md-autocomplete HOT 6
- Flex layout
- md-textarea: add rich text editor support (add-on?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-schema-form-material.