If you're looking for a split.js angular wrapper, angular-split is a great option that functions perfectly. To get started, simply run the following command after installing npm:
Once installed, you need to Add AngularSplitModule to your app module:
import { AngularSplitModule } from 'angular-split';
@NgModule({
declarations: [
AppComponent,
...
],
imports: [
AngularSplitModule,
...
],
providers: [...],
bootstrap: [AppComponent]
})
export class AppModule {}
import {Component, NgModule} from '@angular/core'
import {BrowserModule} from '@angular/platform-browser'
import { AngularSplitModule } from 'angular-split'
@Component({
selector: 'my-app',
styles: [`
:host {
display: block;
width: 500px;
height: 400px;
background: grey;
}
`],
template: `
<split direction="horizontal">
<split-area [size]="30">
<p>Lorem ipsum dolor sit amet...</p>
</split-area>
<split-area [size]="70">
<p>Sed ut perspiciatis unde omnis iste natus erro...</p>
</split-area>
</split>`,
})
export class App {}
@NgModule({
imports: [ BrowserModule, AngularSplitModule ],
declarations: [ App ],
bootstrap: [ App ]
})
export class AppModule {}
Check out this plunker example