Skip to content

Conversation

SeanKelly369
Copy link
Contributor

Now builds and runs successfully

@SeanKelly369 SeanKelly369 merged commit 8258651 into master Apr 30, 2024
Copy link
Contributor Author

@SeanKelly369 SeanKelly369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging to master

Copy link

@darklight365 darklight365 May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SeanKelly369 + @farfromrefug - would this commit not break every other angular plugin in the nativescript-community that makes use of this plugin seed?

For example take a look at the install.module in this plugin (which also relies on this angular seed project):
https://github.com/nativescript-community/ui-material-components

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darklight365. Yes it Will be used in a repos now.
But why would it break ?

Copy link

@darklight365 darklight365 May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@farfromrefug - The module now hard code includes the ui-collectionview components and does no longer dynamically include the COMPONENTS via the plugins install.module.

Check here:

declarations: [AppComponent, MenuComponent, SimpleGridComponent, HorizontalGridComponent, SimpleWaterfallComponent, SimpleTemplatesComponent, SwipeMenuComponent],

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch it is bad !

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prior to this commit the seed project would import the COMPONENTS from the demo-snippets install.module, as seen here:

https://github.com/nativescript-community/ui-material-components/blob/a8a588bfb9658b3974901223c74e8a1442af20d0/demo-snippets/ng/install.module.ts#L29

With this change: the only components included in the angular test project is the ui-collectionview components.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was a try to fix build errors on angular demos.
Buy you got it to work in swipemenu without this? I mean did you revert this to have it work in swipemenu?

Copy link

@darklight365 darklight365 May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I did a clean checkout from master (force updated my branch). So the SwipeMenu changes worked with the current ng project seed.

I would need to perform some additional tests to see if reverting the ng seed app.module has any build issues still.

Copy link

@darklight365 darklight365 May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@farfromrefug - I've made the Angular seed generic again with this PR: #6

The other piece of the puzzle is to correctly export the SwipeMenuComponent in the demo-snippets/ng, PR for that is:
nativescript-community/ui-collectionview#80

cc: @SeanKelly369 for info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants