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

Commit

Permalink
v7.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
formly-bot committed Oct 31, 2015
2 parents 738e0c9 + 38ed43e commit b7d9593
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
7 changes: 4 additions & 3 deletions dist/formly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* angular-formly JavaScript Library v7.3.0
* angular-formly JavaScript Library v7.3.1
*
* @license MIT (http://license.angular-formly.com)
*
Expand Down Expand Up @@ -153,7 +153,7 @@ return /******/ (function(modules) { // webpackBootstrap

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

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

/***/ },
Expand Down Expand Up @@ -1392,6 +1392,7 @@ return /******/ (function(modules) { // webpackBootstrap
function setupFieldGroup() {
$scope.options.options = $scope.options.options || {};
$scope.options.options.formState = $scope.formState;
$scope.to = $scope.options.templateOptions;
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/formly.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/formly.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-formly",
"version": "7.3.0",
"version": "7.3.1",
"author": "Astrism <[email protected]>",
"contributors": [
"Astrism <[email protected]>",
Expand Down
1 change: 1 addition & 0 deletions src/directives/formly-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
function setupFieldGroup() {
$scope.options.options = $scope.options.options || {}
$scope.options.options.formState = $scope.formState
$scope.to = $scope.options.templateOptions
}
}

Expand Down
8 changes: 8 additions & 0 deletions src/directives/formly-form.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ describe('formly-form', () => {
<div class="heading">
Panel Title: {{options.templateOptions.title}}
</div>
<div class="sub-heading">
Subtitle: {{to.subtitle}}
</div>
<div class="body">
<formly-transclude></formly-transclude>
</div>
Expand All @@ -300,6 +303,7 @@ describe('formly-form', () => {
wrapper: 'panel',
templateOptions: {
title: 'My Panel',
subtitle: 'is awesome',
},
fieldGroup: [
getNewField(),
Expand All @@ -320,6 +324,10 @@ describe('formly-form', () => {
expect(headingNode).to.exist
const headingEl = angular.element(headingNode)
expect(headingEl.text().trim()).to.eq('Panel Title: My Panel')
const subHeadingNode = panelNode.querySelector('.sub-heading')
expect(subHeadingNode).to.exist
const subHeadingEl = angular.element(subHeadingNode)
expect(subHeadingEl.text().trim()).to.eq('Subtitle: is awesome')
})

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

0 comments on commit b7d9593

Please sign in to comment.