Custom component/module for Nativescript Core


Hi guys, I am trying to create custom components/modules (I don’t know how its called) to use on my NativeScript Core apps, in Angular I used to use them like this:

<MyCustomComponent [value]="_value" (onChange)=onChange"></MyCustomComponent>

I am trying to create a custom framework so I can reuse on my apps and customize them.

Is there any documentation to follow?



Are you asking about using the Angular component in Core?


Hey @manojdcoder, I want to be able to create custom components in Core.


Did you refer this section in the docs.


That is exactly what I am looking for, but now I am trying to pass data to that custom component and set events. I want to be able to do something like this:

<Page xmlns:customControls="components/my-control" navigatingTo="navigatingTo" class="page">
    <customControls:MyControl value="This is my custom value" onSubmit="{{ onSubmit }}" />

I do not see how to accomplish this in the documentation…

Any idea?



You have everything in docs, you just have to follow the getting started guide step by step for best learning experience.