{"id":15024632,"url":"https://github.com/hettiger/angular-inertiajs-driver","last_synced_at":"2025-06-11T07:37:51.183Z","repository":{"id":184804430,"uuid":"672298816","full_name":"hettiger/angular-inertiajs-driver","owner":"hettiger","description":"Provides Angular support for Inertia.js; uses the original @inertiajs/core package.","archived":false,"fork":false,"pushed_at":"2024-01-30T21:50:37.000Z","size":219,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T06:43:20.933Z","etag":null,"topics":["angular","angular2","inertia","inertiajs","inertiajs-adapter","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/hettiger.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-29T15:42:05.000Z","updated_at":"2025-04-09T10:26:12.000Z","dependencies_parsed_at":"2024-02-06T04:45:30.403Z","dependency_job_id":null,"html_url":"https://github.com/hettiger/angular-inertiajs-driver","commit_stats":null,"previous_names":["hettiger/angular-inertiajs-driver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Fangular-inertiajs-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Fangular-inertiajs-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Fangular-inertiajs-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Fangular-inertiajs-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hettiger","download_url":"https://codeload.github.com/hettiger/angular-inertiajs-driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hettiger%2Fangular-inertiajs-driver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259222654,"owners_count":22824117,"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","angular2","inertia","inertiajs","inertiajs-adapter","laravel"],"created_at":"2024-09-24T20:00:40.167Z","updated_at":"2025-06-11T07:37:51.149Z","avatar_url":"https://github.com/hettiger.png","language":"PHP","readme":"## Angular Inertia.js Driver\n\nProvides Angular support for Inertia.js; uses the original `@inertiajs/core` package.\n\n\u003e **Disclaimer:** This project is a work in progress. This is a 3rd party driver.\n\n## Getting Started\n\n```bash\ngit clone git@github.com:hettiger/angular-inertiajs-driver.git\ncd angular-inertiajs-driver\ncomposer install\ncp .env.example .env\nphp artisan key:generate\nnpm -C resources/angular install\nnpm run ng:dev\nphp artisan serve\n```\n\n\u003e Using `php artisan serve` is not recommended. Consider using [Laravel Herd](https://herd.laravel.com).\n\n## Directory Structure\n\nThis project has been initialized using the Laravel installer and \n[hettiger/laravel-angular-preset](https://github.com/hettiger/laravel-angular-preset).\n\n```text\nangular-interiajs-driver // Laravel App Root\n├── app\n│   ├── …\n│   └── Http\n│       └── Controllers\n│   │       ├── AboutController.php // Inertia.js Page Controller\n│   │       └── HomeController.php // Inertia.js Page Controller\n├── …\n├── public\n│   └── angular // Angular build\n├── resources\n│   ├── angular // Angular App Root ¹\n│   │   └── src\n│   │       ├── app\n│   │       │   ├── inertia // Angular Inertia.js Driver\n│   │       │   └── pages // Inertia.js Page Components\n│   │       └── …\n│   ├── …\n│   └── views\n│       ├── …\n│       └── generated\n│           └── angular.blade.php // Angular Laravel View ¹\n├── routes\n│   ├── …\n│   └── web.php // Inertia.js Page Routes\n└── …\n```\n\n¹ The Angular `index.html` file has been modified to include the `@inertiaHead` and `@inertia` directives. \nChanges made by [hettiger/laravel-angular-preset](https://github.com/hettiger/laravel-angular-preset) keep the \n`angular.blade.php` view in sync. (It's a slightly modified version of `index.html` that uses e.g. the Laravel \n`asset()` helper…)\n\n## Adding Pages\n\nCreate dedicated page components using `ng g c pages/name` as you normally would.\n\n\u003e You need to cd into the `resources/angular` directory before trying to run `ng` commands.\n\nAdd the `InertiaPage` decorator:\n\n```ts\n@InertiaPage('home')\n@Component({\n    selector: 'app-home',\n    templateUrl: './home.component.html',\n    styleUrls: ['./home.component.css']\n})\nexport class HomeComponent {\n    // …\n}\n```\n\n\u003e The string value that you pass to the `InertiaPage` decorator corresponds to the \n\u003e `Inertia::render('home', [/* … */]);` call in your Inertia.js Page Controllers.\n\nRegister your page components:\n\n```ts\n// resources/angular/src/app/pages/index.ts\n\nexport const PAGES: InertiaPageComponent[] = [\n    HomeComponent,\n    // …\n];\n```\n\nAdd a Laravel route and an Inertia.js Page Controller to `routes/web.php`:\n\n`Route::get('/', \\App\\Http\\Controllers\\HomeController::class);`\n\n## Roadmap\n\n- [ ] Support all Inertia.js features\n- [ ] Release the driver as a standalone NPM package that can be installed into an existing Angular application\n\n\u003e There's absolutely no requirement to use \n\u003e [hettiger/laravel-angular-preset](https://github.com/hettiger/laravel-angular-preset)\n\u003e or to build a monorepo in general.\n\n## License\n\nThe Angular Inertia.js Driver is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhettiger%2Fangular-inertiajs-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhettiger%2Fangular-inertiajs-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhettiger%2Fangular-inertiajs-driver/lists"}