Przeglądaj źródła

Docs: Updated architecture intro guide with View#setTemplate API.

Aleksander Nowodzinski 8 lat temu
rodzic
commit
727fa266d2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      docs/framework/guides/architecture/intro.md

+ 2 - 2
docs/framework/guides/architecture/intro.md

@@ -383,7 +383,7 @@ class SampleInputView extends View {
 			placeholder: ''
 		} );
 
-		this.template = new Template( {
+		this.setTemplate( {
 			tag: 'input',
 			attributes: {
 				class: [
@@ -422,7 +422,7 @@ class ParentView extends View {
 		const childA = new SampleInputView( locale );
 		const childB = new SampleInputView( locale );
 
-		this.template = new Template( {
+		this.setTemplate( {
 			tag: 'div',
 			children: [
 				childA