-
Notifications
You must be signed in to change notification settings - Fork 19
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
[WIP] injected angularjs dependencies #969
base: react-migration
Are you sure you want to change the base?
Conversation
Completed following tasks-
Pending -
@shirshendu Please review. |
src/commons/services/utils.js
Outdated
//url = "/api/events.json"; | ||
url = config.baseUrl + "clusters/" + clusterId + "/notifications"; | ||
url = "/api/events.json"; | ||
//url = config.baseUrl + "clusters/" + clusterId + "/notifications"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this change only helps with testing. Should it be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shirshendu Yes, its just for testing. I will remove it.
5b7265e
to
f4e14eb
Compare
2) Implemented Pub/Sub Model 3) Implemented event list view in react Signed-off-by: Neha Gupta <[email protected]>
f4e14eb
to
db6cd72
Compare
@shirshendu I have amended the PR. Please review. |
Problem - angularjs dependencies are getting injected after the code which read it.
In my code, statement
const { $rootScope, $state, $q, $http } = ngDeps;
insideevent-store.js
file is getting executed before the run module's callback, where we are injecting the dependencies(inside ng-react-ng-deps.js). Hence, thengDeps
is not getting updated with the dependencies. For the 1st time, when application gets displayed in browser, we can see the dependencies insidengDeps
(but still $q.defer is undefined) and if you refresh the page,ngDeps
gets blank again because of the above mentioned issue.Hence, for now required angularjs dependencies are added on
window
object and accessed via window object only.@shirshendu ^^