且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ngDialog在mean.js应用

更新时间:2023-11-30 13:16:58

您应该使用凉亭先安装 ngDialog 。在您的应用程序根目录(其中bower.json所在地),发出以下命令,

You should use bower to install ngDialog first. In your application root (where bower.json is located), issue the following command,

凉亭安装--save ngDialog

然后,请确保您的应用程序级别添加ngDialog模块。以下的答案必须是特定于MEAN.JS。

Then, make sure you add ngDialog module in the app level. The following answer is specific to MEAN.JS.

在文件公共/ config.js ,找到行

VAR applicationModuleVendorDependencies = ['ngResource','ngCookies','ngAnimate','ngTouch','ngSanitize','ui.router','ui.bootstrap','ui.utils ];

添加'ngDialog 到列表的末尾

VAR applicationModuleVendorDependencies = ['ngResource','ngCookies','ngAnimate','ngTouch','ngSanitize','ui.router','ui.bootstrap','ui.utils ngDialog'];

然后,包括ngDialog的CSS和JavaScript文件到角应用程序的HTML模板。

Then, include ngDialog's CSS and JavaScript file into the HTML template of the Angular application.

在文件配置/ ENV / all.js的,找到 assets.lib.css ,追加公共/ lib中/ ngDialog / CSS / ngDialog.min.css 到列表中。

In file config/env/all.js, find assets.lib.css, append 'public/lib/ngDialog/css/ngDialog.min.css' to the list.

在同一个文件中,找到 assets.lib.js ,追加公共/ lib中/ ngDialog / JS / ngDialog.min.js 到列表中。

In the same file, find assets.lib.js, append 'public/lib/ngDialog/js/ngDialog.min.js' to the list.