{"id":26178912,"url":"https://github.com/indigosoft/ngx-can-activate-app","last_synced_at":"2025-08-20T20:29:14.527Z","repository":{"id":65458844,"uuid":"139187694","full_name":"Indigosoft/ngx-can-activate-app","owner":"Indigosoft","description":"Confirmation activation of application before load for Angular 5, 6+","archived":false,"fork":false,"pushed_at":"2018-07-02T12:57:41.000Z","size":284,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T20:49:57.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ngx-can-activate-app-demo.stackblitz.io","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Indigosoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-29T19:25:38.000Z","updated_at":"2021-09-30T08:22:58.000Z","dependencies_parsed_at":"2023-01-24T14:45:29.853Z","dependency_job_id":null,"html_url":"https://github.com/Indigosoft/ngx-can-activate-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Indigosoft/ngx-can-activate-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indigosoft%2Fngx-can-activate-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indigosoft%2Fngx-can-activate-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indigosoft%2Fngx-can-activate-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indigosoft%2Fngx-can-activate-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indigosoft","download_url":"https://codeload.github.com/Indigosoft/ngx-can-activate-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indigosoft%2Fngx-can-activate-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-11T21:47:55.348Z","updated_at":"2025-08-20T20:29:14.474Z","avatar_url":"https://github.com/Indigosoft.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgxCanActivateApp\n\n[![Can Activate Angular](https://raw.githubusercontent.com/IndigoSoft/ngx-can-activate-app/master/media/preview.png)](https://ngx-can-activate-app-demo.stackblitz.io/)\n\n\n## 1. Install ngx-can-activate-app\n\n```bash\nnpm i -s ngx-can-activate-app\n```\n\n\n## 2. Create component\n\nIt will be displayed until your application has finished activating.\n\n```typescript\nimport { NgxCanActivateApp } from 'ngx-can-activate-app';\n\n@Component({\n  selector: 'app-confirmation',\n  template: '\u003cbutton (click)=\"onActivate()\"\u003eActivate\u003c/button\u003e'\n})\nexport class ConfirmationComponent {\n  constructor(private canActivateApp: NgxCanActivateApp) {}\n\n  onActivate() { this.canActivateApp.activate(); }\n}\n```\n\n## 3. Declare the component\n\nAdd it to declarations.\n\n```typescript\n@NgModule({\n  declarations: [ AppComponent, ConfirmationComponent ],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n## 4. Import NgxCanActivateAppModule\n\nThen add your component to the module's initialization.\n\n```typescript\nimport { NgxCanActivateAppModule } from 'ngx-can-activate-app';\n\n@NgModule({\n  imports: [\n    NgxCanActivateAppModule.forRoot({\n      component: ConfirmationComponent\n    })\n  ],\n  declarations: [ AppComponent, ConfirmationComponent ],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n## 5. Specify a selector in index.html\n\nAdd the selector of your component to index.html.\n\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\u003c/head\u003e\n\u003cbody\u003e\n  \u003capp-root\u003e\n      \u003capp-confirmation\u003e\u003c/app-confirmation\u003e\n  \u003c/app-root\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findigosoft%2Fngx-can-activate-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findigosoft%2Fngx-can-activate-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findigosoft%2Fngx-can-activate-app/lists"}