@ngneat/subscribe
Advanced tools
Weekly downloads
Changelog
Readme
Subscription Handling Directive
npm install @ngneat/subscribe
Now we can import the SubscribeDirective
and use the subscribe
directive in our template:
import { SubscribeDirective } from '@ngneat/subscribe';
@Component({
imports: [SubscribeDirective],
template: `
<ng-container *subscribe="users$ as users; let error=error">
{{ users | json }}
{{ error }}
</ng-container>
`
})
class MyComponent {
users$ = inject(UserService).getUsers();
}
FAQs
Subscription Handling Directive
The npm package @ngneat/subscribe receives a total of 280 weekly downloads. As such, @ngneat/subscribe popularity was classified as not popular.
We found that @ngneat/subscribe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.