5 lines
28 KiB
JSON
5 lines
28 KiB
JSON
|
{
|
||
|
"id": "api/platform-browser/Title",
|
||
|
"title": "Title",
|
||
|
"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/platform-browser\", \"name\": \"@angular/platform-browser\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/platform-browser/Title\", \"name\": \"Title\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/platform-browser\">@angular/platform-browser</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/platform-browser/src/browser/title.ts?message=docs(platform-browser)%3A%20describe%20your%20change...#L19-L47\" 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/platform-browser/src/browser/title.ts#L19-L47\" 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=\"title\">Title<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-browser/Title#title\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</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>A service that can be used to get and set the title of a current HTML document.</p>\n\n <p><a href=\"api/platform-browser/Title#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/platform-browser/Title\" class=\"code-anchor\">Title</a> {\n <a class=\"code-anchor\" href=\"api/platform-browser/Title#getTitle\"><span class=\"member-name\">getTitle</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/platform-browser/Title#setTitle\"><span class=\"member-name\">setTitle</span>(newTitle: string)</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-browser/Title#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>Since an Angular application can't be bootstrapped on the entire HTML document (<code><html></code> tag)\nit is not possible to bind to the <code>text</code> property of the <code>HTMLTitleElement</code> elements\n(representing the <code><title></code> tag). Instead, this service can be used to set and get the current\ntitle value.</p>\n\n \n</section>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n<section class=\"instance-methods\">\n <h2 id=\"methods\">Methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-browser/Title#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"getTitle\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"gettitle\">\n getTitle()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/platform-browser/Title#gettitle\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/platform-browser/src/browser/title.ts?message=docs(platform-browser)%3A%20describe%20your%20ch
|
||
|
}
|