{"id":21073862,"url":"https://github.com/rickerd/ngarise","last_synced_at":"2026-05-19T10:07:26.255Z","repository":{"id":58238987,"uuid":"67315551","full_name":"rickerd/ngArise","owner":"rickerd","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-16T00:27:28.000Z","size":228,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T23:04:04.680Z","etag":null,"topics":["angular","javascript","loadingscreen"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-03T23:04:48.000Z","updated_at":"2018-09-16T00:25:38.000Z","dependencies_parsed_at":"2022-08-31T00:30:59.810Z","dependency_job_id":null,"html_url":"https://github.com/rickerd/ngArise","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickerd%2FngArise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickerd%2FngArise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickerd%2FngArise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickerd%2FngArise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickerd","download_url":"https://codeload.github.com/rickerd/ngArise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515527,"owners_count":20303261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","javascript","loadingscreen"],"created_at":"2024-11-19T19:03:07.443Z","updated_at":"2026-05-19T10:07:26.229Z","avatar_url":"https://github.com/rickerd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ngArise\n[![Build Status](https://travis-ci.org/rickerd/ngArise.svg?branch=master)](https://travis-ci.org/rickerd/ngArise)\n[![GitHub release](https://img.shields.io/github/release/rickerd/ngarise.svg)](https://github.com/rickerd/ngArise)\n\n## Demo\nVisit the [Github page](https://rickerd.github.io/ngArise) for a demo\n\n## Installing\n\n#### Download directly\n[Download ngArise](https://github.com/rickerd/ngarise/archive/master.zip) files from GitHub\n\n#### Yarn\n```bash\nyarn add ngArise --save\n```\n\n#### NPM\n```bash\nnpm install ngArise --save\n```\n\n#### Bower\n```bash\nbower install ngArise --save\n```\n\n## How to Use\n\nAdd the dependency ngArise\n```javascript\nangular.module('app', ['ngArise']);\n```\n\nAdd provider to make configurations (optional)\n```javascript\n.config(['ariseProvider', function (ariseProvider) {\n    ariseProvider.setOptions(\n        {\n            title: 'Custom title',\n            message: 'Here a message',\n            templateUrl: 'path/to/views/message.html'\n        }\n    );\n    \n    ariseProvider.setDebug(true); // default is false\n}]);\n```\n\nInject Arise service to show / hide or destroy\n```javascript\n.controller(['Arise', function(Arise) {\n    Arise.show();\n    // and / or\n    Arise.hide();\n    // and / or\n    Arise.destroy();\n}]);\n```\n\n*Note: Arise.destroy() will remove all the Arises (put count on 0 and loading false) since multiple Arises can occur*\n\nPlace directive in html as element or attribute\n``` html\n\u003cng-arise\u003e\u003c/ng-arise\u003e\n\u003c!-- or --\u003e\n\u003cdiv ng-arise\u003e\u003c/div\u003e\n```\n\n## Provider API\n\nOptions can be passed to configuration provider globally\n\nThe options list:\n\n|       Option      |                 Type                |         Default value          |                   Description                           |\n| ----------------- | ----------------------------------- | ------------------------------ | ------------------------------------------------------- |\n| title             | String                              | \"Please wait\"                  | Message that is shown as H2 in default template         |\n| message           | String                              | \"We're loading data\"           | String that is shown as a paragraph in default template |\n| templateUrl       | String                              | \"views/default.html\"           | Specify which template should be loaded                 |\n\n## Factory API\n\nCalling the factory Arise to show or hide the loading box an option object can be passed to it.\n\n```javascript\n.controller(['Arise', function(Arise) {\n    Arise.show({\n        title: 'Changed title on the fly',\n        message: 'Message can be changed too'\n    });\n    // and / or\n    Arise.hide();\n}]);\n```\n\nThe functions list:\n\n|       Option      |                 Type                |             Parameter            |\n| ----------------- | ----------------------------------- | -------------------------------- |\n| show              | function                            | Object | title, message          |\n| hide              | function                            |                                  |\n| change            | function                            | Object | title, message          |\n| destroy           | function                            |                                  |\n\n*Note: Arise.hide() will reset the values to the standard provided provider settings*\n\nThe options list:\n\n|       Option      |                 Type                |             Optional           |                   Description                           |\n| ----------------- | ----------------------------------- | ------------------------------ | ------------------------------------------------------- |\n| title             | String                              | true                           | Message that is shown as H2 in default template         |\n| message           | String                              | true                           | String that is shown as a paragraph in default template |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickerd%2Fngarise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickerd%2Fngarise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickerd%2Fngarise/lists"}