Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit adf9054

Browse files
committed
v6.1.5
2 parents 97d1dde + 1b48307 commit adf9054

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ _Example radio field_
257257
##### groupProp (string, optional)
258258
>`groupProp` is what is used to group the options
259259
260+
##### optionsAttr (string, optional)
261+
>`optionsAttr` is what is used as the attribute ngOptions will be applied to. Defaults to `ng-options`
262+
260263
##### ngOptions (string, optional)
261264
>If provided, this is used instead of the default `ng-options` giving you full control (and rendering the other options uncessisary.
262265

dist/angular-formly-templates-bootstrap.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! angular-formly-templates-bootstrap version 6.1.4 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
1+
//! angular-formly-templates-bootstrap version 6.1.5 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
22

33
(function webpackUniversalModuleDefinition(root, factory) {
44
if(typeof exports === 'object' && typeof module === 'object')
@@ -77,7 +77,7 @@ return /******/ (function(modules) { // webpackBootstrap
7777
prefix: 'angular-formly-bootstrap'
7878
}
7979
}));
80-
ngModule.constant('formlyBootstrapVersion', ("6.1.4"));
80+
ngModule.constant('formlyBootstrapVersion', ("6.1.5"));
8181

8282
__webpack_require__(6)(ngModule);
8383
__webpack_require__(9)(ngModule);
@@ -433,14 +433,15 @@ return /******/ (function(modules) { // webpackBootstrap
433433
var ngOptions = options.templateOptions.ngOptions || 'option[to.valueProp || \'value\'] as option[to.labelProp || \'name\'] group by option[to.groupProp || \'group\'] for option in to.options';
434434
return {
435435
ngModelAttrs: _defineProperty({}, ngOptions, {
436-
value: 'ng-options'
436+
value: options.templateOptions.optionsAttr || 'ng-options'
437437
})
438438
};
439439
},
440440
apiCheck: function apiCheck(check) {
441441
return {
442442
templateOptions: {
443443
options: check.arrayOf(check.object),
444+
optionsAttr: check.string.optional,
444445
labelProp: check.string.optional,
445446
valueProp: check.string.optional,
446447
groupProp: check.string.optional

0 commit comments

Comments
 (0)