jcompagner wrote:This release was also demonstrated at ServoyWorld we used this component: https://github.com/Servoy/servoyworld_component to explain how to convert NG1 Component to a NG Titanium Component.
That git repo has a master which is just the NG1 component and a TiNG branch which is the fully converted one.
After the conversion you should first do
"npm install"
in the root of the component package (which holds the package.json file)
@Component({
selector: 'mycomponents-sample,
templateUrl: './sample.html',
styleUrls: ['./sample.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
{
"$schema": "../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../dist/",
"assets": [
"styles.css"
],
"lib": {
"entryFile": "src/public-api.ts"
},
"allowedNonPeerDependencies": []
}
Users browsing this forum: No registered users and 19 guests