
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@sam-senior/infinite-scroll
Advanced tools
Como usar
Importe o infinite-scroll
para o projeto e adicione a tag <sam-infinite-scroll>
no HTML.
Parâmetros
list
: Para este parâmetro deve ser passado um lista a ser iterada, retornando um template.template
: Deve ser passado um ng-template
contendo o HTML , é possível obter o contexto através da variável let-'contexto'
.totalElements
: Número máximo de elementos que contém a lista.endOfElementsLabel
: Label a ser exibida que não existir mais elementos na lista.styleClass
: utilizar para passagem de classes CSS para dentro do container.Retornos
scrollBottom
: sempre que chegar ao final da página, é emitido um evento para que uma nova busca seja realizada e atualizado o valor do parâmetro list
.Exemplo de implementação .html
<sam-infinite-scroll [list]="people" styleClass="ui-g-3"
[template]="`template`"(scrollBottom)="onScrollBottom()"
[totalElements]="totalElements" endOfElementsLabel="Sem elementos">
<ng-template `#template` let-person>
<span>{{person.roleObject}}</span>
</ng-template>
</sam-infinite-scroll>
Exemplo de implementação .ts
export class PersonCardComponent implements OnInit {
public people: [...];
public totalElements = 50;
public onScrollBottom() {
request....subscribe(peoples => {
this.totalElements += peoples.length;
this.peoples.concat(peoples);
});
}
}
FAQs
***Como usar***
The npm package @sam-senior/infinite-scroll receives a total of 8 weekly downloads. As such, @sam-senior/infinite-scroll popularity was classified as not popular.
We found that @sam-senior/infinite-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.