Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(guide/di): clarify example description #16833

Closed
wants to merge 1 commit into from

Conversation

kambleaa007
Copy link
Contributor

@kambleaa007 kambleaa007 commented Feb 16, 2019

docs(IoC): modified description about example

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change?

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Fix/Feature: Docs have been added/updated
  • Fix/Feature: Tests have been added; existing tests pass

Other information:

@@ -283,9 +283,12 @@ Here is an example of using the injector service:
// Provide the wiring information in a module
var myModule = angular.module('myModule', []);
```
Notice that `myModule` is independent as array is empty here.
Dependent is always need dependency object to be injected inside it.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this sentence. Remember that the previous code snippet is defining a module so it is not helpful to refer to "objects" here.


Teach the injector how to build a `greeter` service. Notice that `greeter` is dependent on the
`$window` service. The `greeter` service is an object that contains a `greet` method.
so, injector now injects `$window` dependency inside `greeter` service.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't feel that this sentence makes sense. If anything it should appear before the previous sentence and should be something more like

Notice that greeter is dependent on the $window service, which will be provided by the injector when it is instantiated.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Mar 4, 2019
Copy link
Contributor Author

@kambleaa007 kambleaa007 left a comment

Choose a reason for hiding this comment

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

changed

@kambleaa007
Copy link
Contributor Author

@petebacondarwin thanks,
Can you guide me how to make successful commit.

@kambleaa007 kambleaa007 changed the title docs(IoC): modified description about example docs (IoC): modified description about example Mar 4, 2019
@kambleaa007 kambleaa007 changed the title docs (IoC): modified description about example docs(feat): modified description about example Mar 4, 2019
@@ -14,7 +14,8 @@ and providing them to other components as requested.

## Using Dependency Injection

Dependency Injection is pervasive throughout AngularJS. You can use it when defining components
Dependency Injection is pervasive throughout AngularJS.
You can use it when defining components
Copy link
Member

Choose a reason for hiding this comment

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

Is this change necessary?

Copy link
Contributor Author

@kambleaa007 kambleaa007 left a comment

Choose a reason for hiding this comment

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

Helpful for beginners

Copy link
Contributor Author

@kambleaa007 kambleaa007 left a comment

Choose a reason for hiding this comment

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

Im fine with this Thanks

@kambleaa007
Copy link
Contributor Author

Hello all,
I think i'm gettin errors as i dont have write access to repo.
Does anybody help me in this??

@petebacondarwin
Copy link
Contributor

@kambleaa007 what errors? You should not need access to write to the main repository. You just write to your own fork,

@kambleaa007
Copy link
Contributor Author

@kambleaa007 what errors? You should not need access to write to the main repository. You just write to your own fork,

Travis Giving me:- CLAs are signed, but unable to verify author consent

@petebacondarwin
Copy link
Contributor

This is because @mgol and I have made commits to this PR. You can ignore this error.

@kambleaa007
Copy link
Contributor Author

This is because @mgol and I have made commits to this PR. You can ignore this error.

That's great,
This is going to be interesting, as i learned a lot, this would be my first commit if it succeed hopefully.

@gkalpak gkalpak self-assigned this Mar 5, 2019
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes and removed cla: no labels Mar 5, 2019
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@gkalpak gkalpak changed the title docs(feat): modified description about example docs(guide/di): clarify example description Mar 5, 2019
@gkalpak gkalpak closed this in a1d1564 Mar 5, 2019
gkalpak pushed a commit that referenced this pull request Mar 5, 2019
@gkalpak
Copy link
Member

gkalpak commented Mar 5, 2019

I tweaked this a bit and merged. Thx, @kambleaa007 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants