Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Allow specifying a module to use with NgDirective #779

Closed

Conversation

mvuksano
Copy link
Contributor

No description provided.

@@ -0,0 +1,57 @@
library foo;
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be in the example folder ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vicb I plan to delete the whole demo folder. This is just to be able to demo different behavior and till we decide on the approach.

`module` parameter in NgAnnotation (and other annotations that extend
it) can be used to publish types. The old `publishTypes` parameter is
removed.
mvuksano added a commit that referenced this pull request Apr 2, 2014
`module` parameter in NgAnnotation (and other annotations that extend
it) can be used to publish types. The change is a bit more wordy
but it is a lot more powerful.

BREAKING CHANGE: `publishTypes` parameter is removed.

@ngdirective(
  publishTypes: [FooInt]
)
class Foo extends FooInt {
}

becomes

@ngdirective(
  module: Foo.module,
  visibility: NgDirective.LOCAL_VISIBILITY
)
class Foo extends FooInt {
  module() => new Module()
    ..factory(FooInt, 
              (i) => i.get(Foo), 
              visibility: NgDirective.LOCAL_VISIBILITY)
}


Closes #779
mvuksano added a commit that referenced this pull request Apr 2, 2014
`module` parameter in NgAnnotation (and other annotations that extend
it) can be used to publish types. The change is a bit more wordy
but it is a lot more powerful.

BREAKING CHANGE: `publishTypes` parameter is removed.

@ngdirective(
  publishTypes: [FooInt]
)
class Foo extends FooInt {
}

becomes

@ngdirective(
  module: Foo.module,
  visibility: NgDirective.LOCAL_VISIBILITY
)
class Foo extends FooInt {
  module() => new Module()
    ..factory(FooInt,
              (i) => i.get(Foo),
              visibility: NgDirective.LOCAL_VISIBILITY)
}

Closes #779
@mvuksano mvuksano closed this in 5ec7e83 Apr 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants