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

Commit b7d9593

Browse files
committed
v7.3.1
2 parents 738e0c9 + 38ed43e commit b7d9593

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

dist/formly.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-formly JavaScript Library v7.3.0
2+
* angular-formly JavaScript Library v7.3.1
33
*
44
* @license MIT (http://license.angular-formly.com)
55
*
@@ -153,7 +153,7 @@ return /******/ (function(modules) { // webpackBootstrap
153153

154154
ngModule.constant('formlyApiCheck', _providersFormlyApiCheck2['default']);
155155
ngModule.constant('formlyErrorAndWarningsUrlPrefix', _otherDocsBaseUrl2['default']);
156-
ngModule.constant('formlyVersion', ("7.3.0")); // <-- webpack variable
156+
ngModule.constant('formlyVersion', ("7.3.1")); // <-- webpack variable
157157

158158
ngModule.provider('formlyUsability', _providersFormlyUsability2['default']);
159159
ngModule.provider('formlyConfig', _providersFormlyConfig2['default']);
@@ -424,7 +424,7 @@ return /******/ (function(modules) { // webpackBootstrap
424424
Object.defineProperty(exports, "__esModule", {
425425
value: true
426426
});
427-
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("7.3.0") + "/other/ERRORS_AND_WARNINGS.md#";
427+
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("7.3.1") + "/other/ERRORS_AND_WARNINGS.md#";
428428
module.exports = exports["default"];
429429

430430
/***/ },
@@ -1392,6 +1392,7 @@ return /******/ (function(modules) { // webpackBootstrap
13921392
function setupFieldGroup() {
13931393
$scope.options.options = $scope.options.options || {};
13941394
$scope.options.options.formState = $scope.formState;
1395+
$scope.to = $scope.options.templateOptions;
13951396
}
13961397
}
13971398

dist/formly.min.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/formly.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-formly",
3-
"version": "7.3.0",
3+
"version": "7.3.1",
44
"author": "Astrism <[email protected]>",
55
"contributors": [
66
"Astrism <[email protected]>",

src/directives/formly-field.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
204204
function setupFieldGroup() {
205205
$scope.options.options = $scope.options.options || {}
206206
$scope.options.options.formState = $scope.formState
207+
$scope.to = $scope.options.templateOptions
207208
}
208209
}
209210

src/directives/formly-form.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ describe('formly-form', () => {
287287
<div class="heading">
288288
Panel Title: {{options.templateOptions.title}}
289289
</div>
290+
<div class="sub-heading">
291+
Subtitle: {{to.subtitle}}
292+
</div>
290293
<div class="body">
291294
<formly-transclude></formly-transclude>
292295
</div>
@@ -300,6 +303,7 @@ describe('formly-form', () => {
300303
wrapper: 'panel',
301304
templateOptions: {
302305
title: 'My Panel',
306+
subtitle: 'is awesome',
303307
},
304308
fieldGroup: [
305309
getNewField(),
@@ -320,6 +324,10 @@ describe('formly-form', () => {
320324
expect(headingNode).to.exist
321325
const headingEl = angular.element(headingNode)
322326
expect(headingEl.text().trim()).to.eq('Panel Title: My Panel')
327+
const subHeadingNode = panelNode.querySelector('.sub-heading')
328+
expect(subHeadingNode).to.exist
329+
const subHeadingEl = angular.element(subHeadingNode)
330+
expect(subHeadingEl.text().trim()).to.eq('Subtitle: is awesome')
323331
})
324332

325333
it(`should be possible to hide a fieldGroup with the hide property`, () => {

0 commit comments

Comments
 (0)