5 lines
25 KiB
JSON
5 lines
25 KiB
JSON
{
|
|
"id": "api/common/LowerCasePipe",
|
|
"title": "LowerCasePipe",
|
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/LowerCasePipe\", \"name\": \"LowerCasePipe\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/src/pipes/case_conversion_pipes.ts?message=docs(common)%3A%20describe%20your%20change...#L11-L42\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/pipes/case_conversion_pipes.ts#L11-L42\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"lowercasepipe\">LowerCasePipe<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LowerCasePipe#lowercasepipe\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label pipe\">pipe</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Transforms text to all lower case.</p>\n\n \n </section>\n \n \n \n<section class=\"pipe-overview\">\n <code-example hidecopy=\"true\" class=\"no-box api-heading\">{{ value_expression | <span class=\"kwd nocode\">lowercase</span> }}</code-example>\n\n <h2 id=\"ngmodule\">NgModule<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LowerCasePipe#ngmodule\"><i class=\"material-icons\">link</i></a></h2>\n<ul class=\"ngmodule-list\">\n\n <li>\n <a href=\"api/common/CommonModule\">\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">CommonModule</code-example>\n </a>\n </li>\n \n</ul>\n\n\n\n \n <h2 id=\"input-value\">Input value<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LowerCasePipe#input-value\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table parameters-table pipe-parameters\">\n <tbody>\n \n <tr class=\"pipe-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>value</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n \n \n</section>\n\n\n \n<section class=\"see-also\">\n <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LowerCasePipe#see-also\"><i class=\"material-icons\">link</i></a></h2>\n <ul>\n \n <li><p><code><a href=\"api/common/UpperCasePipe\" class=\"code-anchor\">UpperCasePipe</a></code></p>\n</li>\n <li><p><code><a href=\"api/common/TitleCasePipe\" class=\"code-anchor\">TitleCasePipe</a></code></p>\n</li>\n </ul>\n</section>\n\n\n \n\n\n \n<section class=\"usage-notes\">\n <h2 id=\"usage-notes\">Usage notes<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LowerCasePipe#usage-notes\"><i class=\"material-icons\">link</i></a></h2>\n <p>The following example defines a view that allows the user to enter\ntext, and then uses the pipe to convert the input text to all lower case.</p>\n<code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region=\"LowerUpperPipe\">\n@<a href=\"api/core/Component\" class=\"code-anchor\">Component</a>({\n selector: 'lowerupper-pipe',\n template: `<div>\n <label>Name: </label><input #name (keyup)=\"change(name.value)\" type=\"text\">\n <p>In lowercase: <pre>'{{value | <a href=\"api/common/LowerCasePipe\" class=\"code-anchor\">lowercase</a>}}'</pre>\n <p>In uppercase: <pre>'{{value | <a href=\"api/common/UpperCasePipe\" class=\"code-anchor\">uppercase</a>}}'</pre>\n </div>`\n})\nexport class LowerUpperPipeComponent {\n // TODO(issue/24571): remove '!'.\n value!: string;\n change(value: string) {\n this.value = value;\n }\n}\n\n</code-example>\n\n</section>\n\n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/common/CommonModule\n - api/common/TitleCasePipe\n - api/common/UpperCasePipe\n - api/core/PipeTransform\n - guide/ajs-quick-reference\n - guide/pipes\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/CommonModule\n - api/common/LowerCasePipe#input-value\n - api/common/LowerCasePipe#lowercasepipe\n - api/common/LowerCasePipe#ngmodule\n - api/common/LowerCasePipe#see-also\n - api/common/LowerCasePipe#usage-notes\n - api/common/TitleCasePipe\n - api/common/UpperCasePipe\n - api/core/Component\n - https://github.com/angular/angular/edit/master/packages/common/src/pipes/case_conversion_pipes.ts?message=docs(common)%3A%20describe%20your%20change...#L11-L42\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/pipes/case_conversion_pipes.ts#L11-L42\n-->"
|
|
} |