New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ng2-first-layout

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-first-layout

this is a angular2 flexible ui layout

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Angular2 first layout 组件

安装

该库可用作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>
  `
})
// ...

How can I support developers?

  • 可以关注我们的:Github
  • 创建拉请求,提交错误,建议新功能

功能特征(详情请看本项目文档)

ok

Keywords

angular

FAQs

Package last updated on 15 Sep 2017

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