New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating $uibmodal to ng-bootstrap #3687
Comments
How you will mashup your content (downgraded/upgraded) and who will consume NGBootstrap (AngularJS or NG)? I haven't used downgraded NgBootstrap services, maybe someone will share some feedback. |
AngularJS will consume the content, right? Since there are some directives that are not migrated and are calling this particular part. Also, we are migrating services first and then we thought of migrating the directives. Each service ends with a this piece of code:
which downgrades this service to be used for AngularJS part of the codebase. I'm not sure how downgradeInjectable will work with ng-bootstrap. Please let me know if you've any concerns @peterblazejewicz. |
Hi @bansalnitish, I'm facing the same problem now - trying to migrate the story-creation.service.ts file and it uses $uibModal, do you have any tips for how to move forward? |
Hi @kaylahardie, Please do not migrate services that involve $uibmodal. (Also, lets keep this discussion in the org itself) |
I don't think this an issue anymore. This can be closed. The solution is simple, we migrate the service/ component that uses $uibModal. Then the controller and the template are migrated together to form an angular component. Once that is done, we add the migrated component to the list of entry components and then just simply follow the documentation for NgbModal. |
I'm working on migrating the codebase of Oppia(https://github.com/oppia/oppia) from AngularJS to Angular.
We are currently in a hybrid state i.e part of codebase is in Angular and the other part is in AngularJS.
I was trying to migrate a service which involves the use of $uibmodal to create modals. The service is available here: https://github.com/oppia/oppia/blob/develop/core/templates/components/entity-creation-services/topic-creation.service.ts.
I'm also adding some relevant section from the same service:
I searched online and I guess that ng-bootstrap is the right way to do it, but I'm not sure if this is right way. My concerns are:
The text was updated successfully, but these errors were encountered: