someFunc.d.ts
export function someFunc(): Promise<any>;
someFunc.<android/ios>.ts
export function someFunc(): Promise<any> {
//code here
}
some.component.d.ts
import {Component} from "@angular/core"
@Component({
selector: '<component name>',
moduleId: module.id,
templateUrl: ["./<component name>.component.html"]
})
export class SomeComponent {
work();
}
some.component.<android/ios>.ts
import {Component} from "@angular/core"
@Component({
selector: '<component name>',
moduleId: module.id,
templateUrl: ["./<component name>.component.html"]
})
export class SomeComponent {
work() {
//code here
}
}
In some.component.html
<android>
<!-- code here -->
</android>
<ios>
<!-- code here -->
</ios>
To be done