Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
angular-ui-fugu
Advanced tools
本组件的开发主要依赖于以下几个库:
如果需要所有的组件,直接引用dist目录下的文件即可,如果需要定制化组件,在项目目录下执行下面的命令安装依赖包
npm install
安装完成之后执行
gulp -m directive1,directive2,directive3
即可自动在dist下构建需要的directive1,directive2,directive3组件集合
使用npm安装:
npm install angular-ui-fugu
文件引入
angular和bootstrap文件的引入要在fugu文件引入之前
具体使用
/**
* js文件
*/
angular.module('myApp',['ui.fugu']); // 组件依赖注入
// 以alert使用为例
angular.module('fuguDemo').controller('alertDemoCtrl',['$scope', function ($scope) {
$scope.alerts = [
{ type: 'danger', msg: 'Oh snap! Change a few things up and try submitting again.' },
{ type: 'success', msg: 'Well done! You successfully read this important alert message.' },
{ type: 'warning', msg: 'FBI Warning! Manong would ignore anything about warning.' },
{ type: 'info', msg: 'I know that you wouldn\'t see this line.' }
];
$scope.closeAlert = function(index) {
$scope.alerts.splice(index, 1);
};
}]);
/**
* html文件
*/
<div ng-controller="alertDemoCtrl">
<fugu-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="true" close-func="closeAlert($index)" has-icon="true">{{alert.msg}}</fugu-alert>
</div>
ISC
1.0.0 (2016-06-16)
FAQs
UI Fugu
The npm package angular-ui-fugu receives a total of 1 weekly downloads. As such, angular-ui-fugu popularity was classified as not popular.
We found that angular-ui-fugu 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.