Skip to content

Instantly share code, notes, and snippets.

@benoror
Last active January 13, 2017 09:09
Show Gist options
  • Save benoror/22f0e5f81dd007c53b74 to your computer and use it in GitHub Desktop.
Save benoror/22f0e5f81dd007c53b74 to your computer and use it in GitHub Desktop.
angular-formly with bootstrap's nav tabs (multiple formly-form)
{
"form": [
{
"type": "tabset",
"tabs": [
{
"title": "tab1",
"fields": [...]
},
{
"title": "tab1",
"fields": [...]
}
]
}
]
}
<tabset ng-repeat="tabset in form | filter:{type:'tabset'}">
<tab ng-repeat="tab in tabset.tabs | filter:{type:'tab'}"
heading="{{tab.title}}"
active="tab.active"
disable="tab.disabled">
<formly-form model="model" fields="tab.fields">
</formly-form>
</tab>
</tabset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment