Im using third party splitjs. script will search id of div then run, and it work great when i put element in index.html. But when i put element in component it seem script cant find id of elements? Im missing something? Appreciate any comments.
<body>
<app-root></app-root>
<div class="content">
<div id="red" class="cell"></div>
<div id="blue" class="cell"></div>
</div>
<script>
Split(["#red", "#blue"], {
minSize: 0
});
</script>
</body>