Triggering the customer component multiple times
Summary
Triggering the customer component multiple timesContent
Hi,
When i am using custom component by default it is triggering the default constructor and rendering . But when any event happens on the rendered page how to handle in custom component through jquery where i want to define specific methods.
Attached code snippet.
Version
18.xCode Snippet
define(['knockout', 'resources/js/blank','jquery','ojs/ojcore'], function(ko,blank,$) { 'use strict'; function ComponentModel() { var self = this; // self.composite = context.element; self.messageText = ko.observable("Prasad"); this.messageText = ko.computed(function() { var test=""; var content=""; var urlStringHeader ='https://ejjq-dev1.fa.us2.oraclecloud.com:443/km/api/latest/content/9B98350779C4464E9FE036793F895185'; alert('test'); $.ajax({ url: urlStringHeader, async: false, cache: false, headers: {
Tagged:
0