html - Insert any element from script in an element Angular 2 -
i have problem insert element in element <my-app> (angular 2). need @ first element <div class="render"></div> jquery in <script> (look @ code html) need write in <div class="render"></div> information (for example <h1> hello </h1> (look @ html code) ). when app run code must write in <div class="render"></div> . not happen because on moment start <div class="render"></div> not exist. if set settimeout it's working (because <div class="render"></div> in time appear on page). please may decide problem? p.s. jquery , angular 2 in 1 app not correctly know me need decide problem. html code. <!doctype html> <html lang="en"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"> </script> </head> <body> <my-app>loading...</my-app>...