New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-let-directive

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-let-directive

This directive helps to store value to a local variable to be bound in the template.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
Maintainers
1
Weekly downloads
 
Created
Source

NgxLetDirective

This directive helps to store value to a local variable to be bound in the template.

The directive works with Angular 5 and 6. To use it in Angular 4, you may import the .ts file directly (see Usage). For Angular 2, you may try it in Angular 4's way, but it's not tested.

Usage

1.Install ngx-let-directive.

npm i -S ngx-let-directive

2.Import NgxLetDirectiveModule to your Angular module.

Angular 4

import { NgxLetDirectiveModule } from 'ngx-let-directive/src';
@NgModule({
  imports: [
    ...
    NgxLetDirectiveModule,
    ...
  ],
  ...

Angular 5+

import { NgxLetDirectiveModule } from 'ngx-let-directive';
@NgModule({
  imports: [
    ...
    NgxLetDirectiveModule,
    ...
  ],
  ...

3.Add the "*let" attribute to an element or ngContainer.

<div *let="userObservable | async as user">
  Hello {{user}}!
</div>

4.Version History

1.0.1 unable-to-rebind bug fixed 1.0.0 initial version


Good luck.

Keywords

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc