8
0
Просмотр исходного кода

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

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
727fa266d2
1 измененных файлов с 2 добавлено и 2 удалено
  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: ''
 			placeholder: ''
 		} );
 		} );
 
 
-		this.template = new Template( {
+		this.setTemplate( {
 			tag: 'input',
 			tag: 'input',
 			attributes: {
 			attributes: {
 				class: [
 				class: [
@@ -422,7 +422,7 @@ class ParentView extends View {
 		const childA = new SampleInputView( locale );
 		const childA = new SampleInputView( locale );
 		const childB = new SampleInputView( locale );
 		const childB = new SampleInputView( locale );
 
 
-		this.template = new Template( {
+		this.setTemplate( {
 			tag: 'div',
 			tag: 'div',
 			children: [
 			children: [
 				childA
 				childA