
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ng2-first-layout
Advanced tools
该库可用作npm软件包,因此您只需运行以下命令即可:(如果不是新手,建议先装淘宝镜像端,因为cnpm更快)
npm install --save ng2-first-layout
该命令将在您的package.json文件中创建一个记录,并将该包安装到npm modules文件夹中。
首先需要将ng2-first-layout指令导入到组件中。
import { Ng2FirstLayoutModule } from 'ng2-first-layout';
然后通过添加到您的模块的指令列表来注册它:
// ...
@NgModule({
imports: [
// ...
Ng2FirstLayoutModule,
// ...
],
declarations: [ ... ]
})
// ...
最后,我们将ng2-first-layout组件放在模板中:
// ...
@Component({
template: `
<ng2-first-layout [settings]="settings"></ng2-first-layout>
`
})
// ...
ok
FAQs
this is a angular2 flexible ui layout
We found that ng2-first-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.