【文件属性】:
文件名称:angular-modals:Angular-UI-Bootstrap模态的简单管理器,请查看它,看看如何使您的模态生活更轻松
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-01 21:12:17
JavaScript
角模态
用于angular-ui-bootstrap模态的简单管理器。 创建并注册模态,然后使用$ modals service或modal dreictive轻松打开它们
主意
管理器背后的主要思想是将模式作为异步服务,类似于$ http服务
如果要获取用户配置文件表单服务器,则可以执行以下操作:
$http . get ( '/user/prifle' , { profile_id : 1 } ) . then ( function ( profile ) {
// handle success
} , function ( error ) {
// handle error
} ) ;
为什么不以相同的方式对待模态。 假设您要使用模式来编辑配置文件,它应该很简单:
$modals . open ( 'user-edit' , { profile_id : 1 }
【文件预览】:
angular-modals-master
----LICENSE(18KB)
----README.md(5KB)
----dist()
--------angular-modals.js(4KB)
----.gitignore(20B)
----index.js(68B)
----package.json(632B)