I am trying to use splitter in angular 7 project. But as soon I put the #content in ng-template then I get error saying str.replace is not a function
This is what I did:
1. npm install @syncfusion/ej2-angular-layouts --save
2. In my module I have added the SplitterModule
3. Then using as
<div id='load-content-container'>
<ejs-splitter #horizontal height = '200px' width='1100px'>
<e-panes>
<e-pane size='40%'>
<ng-template #content>
<div>ssssqq</div>
</ng-template>
</e-pane>
<e-pane size='60%'>
<ng-template #content>
<div>ssssq</div>
</ng-template>
</e-pane>
</e-panes>
</ejs-splitter>
</div>
below is the error I am getting:
These are the packages I am using :
"@syncfusion/ej2-angular-charts": "^16.4.48",
"@syncfusion/ej2-angular-layouts": "^16.4.54",
"@syncfusion/ej2-angular-navigations": "^16.4.47",
"@syncfusion/ej2-angular-popups": "^16.4.47",
"@syncfusion/ej2-base": "^16.4.47",
core.js:15714 ERROR TypeError: str.replace is not a function
at evalExp (template.js:65)
at compile (template.js:52)
at Object.push../node_modules/@syncfusion/ej2-layouts/node_modules/@syncfusion/ej2-base/src/template-engine.js.Engine.compile (template-engine.js:57)
at compile (template-engine.js:16)
at SplitterComponent.push../node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.setTemplate (splitter.js:915)
at SplitterComponent.push../node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.createSplitPane (splitter.js:951)
at SplitterComponent.push../node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.render (splitter.js:215)
at SplitterComponent.push../node_modules/@syncfusion/ej2-layouts/node_modules/@syncfusion/ej2-base/src/component.js.Component.appendTo (component.js:130)
at component-base.js:100
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)