Explorar el Código

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

Aleksander Nowodzinski hace 8 años
padre
commit
727fa266d2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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