Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1de512e

Browse files
committedJun 24, 2015
Fix casing and required
1 parent f3767b8 commit 1de512e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
 

‎examples/camelcase/example.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ exampleApp.controller("exampleController", ["$scope", function ($scope) {
2222
type: "object",
2323
title: "camelCase",
2424
properties: {
25-
camelcase_format: {
25+
camelCaseFormat: {
2626
type: "string",
2727
format: "camelcase",
2828
description: "When you edit this, the value will become automatically camelCase:d."
2929
},
30-
camelcase_form_type: {
30+
camelCaseFormType: {
3131
type: "string",
32-
description: "When you edit this, the value will become equally camelCase:d."
32+
description: "When you edit this, which is required, the value will become equally camelCase:d."
3333
}
3434
},
35-
required: ["camelcase"]
35+
required: ["camelCaseFormType"]
3636
};
3737

3838
// Define all UI aspects of the form
3939
$scope.form = [
4040

4141
{
42-
"key": "camelcase_format",
42+
"key": "camelCaseFormat",
4343
"title": "Example of camelCase editor via format"
4444
},
4545
{
46-
"key": "camelcase_form_type",
46+
"key": "camelCaseFormType",
4747
"title": "Example of camelCase editor via form type",
4848
"type": "camelcase",
4949
"some_setting": "true"
@@ -57,7 +57,7 @@ exampleApp.controller("exampleController", ["$scope", function ($scope) {
5757
// Initiate the model
5858
$scope.model = {};
5959
// Initiate one of the inputs
60-
$scope.model.camelcase_format = "default value";
60+
$scope.model.camelCaseFormat = "default value";
6161

6262
// This is called by asf on submit, specified in example.html, ng-submit.
6363
$scope.submitted = function (form) {

‎examples/minimal/example.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ exampleApp.controller("exampleController", ["$scope", function ($scope) {
2222
type: "object",
2323
title: "Minimal",
2424
properties: {
25-
minimal_format: {
25+
minimalFormat: {
2626
type: "string",
2727
format: "minimal",
2828
description: "When you edit this, it is in the add-ons input box."
2929
},
30-
minimal_form_type: {
30+
minimalFormType: {
3131
type: "string",
32-
description: "When you edit this, it is equally in the add-ons input box"
32+
description: "When you edit this, which is required, it is equally in the add-ons input box"
3333
}
3434
},
35-
required: ["minimal"]
35+
required: ["minimalFormType"]
3636
};
3737

3838
// Define all UI aspects of the form
3939
$scope.form = [
4040

4141
{
42-
"key": "minimal_format",
42+
"key": "minimalFormat",
4343
"title": "Example of minimal editor via format"
4444
},
4545
{
46-
"key": "minimal_form_type",
46+
"key": "minimalFormType",
4747
"title": "Example of minimal editor via form type",
4848
"type": "minimal",
4949
"some_setting": "true"
@@ -57,7 +57,7 @@ exampleApp.controller("exampleController", ["$scope", function ($scope) {
5757
// Initiate the model
5858
$scope.model = {};
5959
// Initiate one of the inputs
60-
$scope.model.minimal_format = "default value";
60+
$scope.model.minimalFormat = "default value";
6161

6262
// This is called by asf on submit, specified in example.html, ng-submit.
6363
$scope.submitted = function (form) {

0 commit comments

Comments
 (0)
Please sign in to comment.