Issue solution (#8). My simple update.#9
Conversation
|
Hi Thank you for the PR. This is very much the spirit of open source - you find a problem, you fix the problem, you pay the solution forward to the community and hopefully in the process you learn something new. That said - I have some issues with the PR. I will list most of them here and then we can get into detailed code review :
Please revert all changes to
Please provide more details. |
|
Hi. Thanks for the reply. I realized my mistakes, thank you. As soon as there is time to correct my mistakes, I will come back to you with a review) |
Changes
Updating the framework
Angular has been updated to the latest stable version (v15) e95ad62
Bug fix (#8)
This problem was related to the @Input settings.
In the input of the map, we initialize the sidebar, but in this case, the options field cannot be set by the user in this context. Therefore, when creating a sidebar, we take the value set by the constructor of our component ({} is an empty object).
When initializing the sidebar with an empty object, we can see the problem described in (#8)
I solved this problem by transferring the creation of the sidebar after setting the properties of the component (OnInit)
Refactoring
It seemed to me that the approaches written in the code were outdated. Therefore, I suggest changing the written code.
I made 3 separate emitters for each of the events.
Now usings

I did not add the $ sign to the names of these emitters (as you have change$), because now, according to convention, observable types are designated this way.
Conclusion
I started to figure it out, because no one solved my problem (#8) :) When I had free time, I decided to do it.
Fixing this problem, I learned a lot of new and interesting things related to the work of libraries loaded on npm. For me as a student, it was a useful experience)
I hope you will like my corrections)