Which of the following is the correct syntax to use observable attributes in KO?

24. Which of the following is the correct syntax to use observable attributes in KO?

  1. Observable = ko.this ('value');
  2. this.property = ko.observable('value');
  3. this.observable = ko.this('value');

Answer: B) this.property = ko.observable('value');

Explanation:

this.property = ko.observable('value'); is the correct syntax to use observable attribute in KO.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.