×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Theo Weijmer
Added: Nov 26, 2021 9:22 AM
Views: 1239
Tags: knockout
  1.  
  2. tw.[INITFUNCTION] = function(){
  3.    
  4.     if( tw.[MODULENAME] !== 'undefined'){
  5.        
  6.        
  7.     }else{
  8.         [MODULENAME] = {
  9.            
  10.         }
  11.        
  12.         ko.applyBindings( [MODULENAME], document.getElementById( "[PAGE-IDENTIFIER]" ) );
  13.     }
  14.    
  15. }
  16.  
  17.