commit | 74b6ef78b565525bd543b87a44e8ae34d5384a65 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@onlab.us> | Fri Apr 15 16:43:48 2016 -0700 |
committer | Matteo Scandolo <teo@onlab.us> | Fri Apr 15 16:43:48 2016 -0700 |
tree | b7cc3710fcb23b1b85cf6651cb47d1371e881aa9 | |
parent | e15a8202615a094586a6c35da544af71812f5e81 [diff] |
alert and pagination
diff --git a/views/ngXosViews/sampleView/src/js/main.js b/views/ngXosViews/sampleView/src/js/main.js index 798cb0e..b00aa0b 100644 --- a/views/ngXosViews/sampleView/src/js/main.js +++ b/views/ngXosViews/sampleView/src/js/main.js
@@ -59,6 +59,12 @@ // } }; + this.alertConfig = { + type: 'danger', + closeBtn: true + } + + // retrieving user list Users.query().$promise .then((users) => {
diff --git a/views/ngXosViews/sampleView/src/templates/users-list.tpl.html b/views/ngXosViews/sampleView/src/templates/users-list.tpl.html index 10d7208..c0c58cb 100644 --- a/views/ngXosViews/sampleView/src/templates/users-list.tpl.html +++ b/views/ngXosViews/sampleView/src/templates/users-list.tpl.html
@@ -5,6 +5,8 @@ </div> </div> + <xos-alert config="vm.alertConfig">Alert message Here</xos-alert> + <div class="row"> <div class="col-xs-12"> <xos-table data="vm.users" config="vm.tableConfig"></xos-table>