{"id":16376407,"url":"https://github.com/rochdev/backbone-ng-view","last_synced_at":"2026-04-07T00:30:18.642Z","repository":{"id":20023277,"uuid":"23291151","full_name":"rochdev/backbone-ng-view","owner":"rochdev","description":"A simple Backbone view wrapping AngularJS","archived":false,"fork":false,"pushed_at":"2017-04-22T12:24:30.000Z","size":11,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T08:13:40.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/rochdev/backbone-ng-view","language":"JavaScript","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/rochdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-24T19:56:22.000Z","updated_at":"2022-07-29T02:21:01.000Z","dependencies_parsed_at":"2022-07-23T14:32:17.439Z","dependency_job_id":null,"html_url":"https://github.com/rochdev/backbone-ng-view","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Fbackbone-ng-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Fbackbone-ng-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Fbackbone-ng-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochdev%2Fbackbone-ng-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rochdev","download_url":"https://codeload.github.com/rochdev/backbone-ng-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970660,"owners_count":19727010,"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":[],"created_at":"2024-10-11T03:24:35.920Z","updated_at":"2026-04-07T00:30:18.570Z","avatar_url":"https://github.com/rochdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backbone.NgView [![Build][build-image]][build-url] [![Version][version-image]][version-url] [![License][license-image]][license-url]\n\nThe goal of this project is to be able to use AngularJS seamlessly from within Backbone projects. It allows you to create a Backbone view with its DOM managed by AngularJS. Ideal for slowly switching an application from Backbone to AngularJS.\n\n## How to install\n\nFrom your project root, run:\n\n```sh\n$ bower install backbone-ng-view\n```\n\n## Usage\n\nThe API is inspired from AngularJS [$routeProvider][route-provider-url] to provide a familiar usage.\n\nThe following options are supported and work the same way as their [$routeProvider][route-provider-url] counterpart:\n\n  * `controller`\n  * `controllerAs`\n  * `template`\n  * `templateUrl`\n  * `resolve`\n\nBy default, the view will try to find an existing AngularJS [$rootScope][root-scope-url] directly on the document object. Thus, the easiest way to use it is to bootstrap the entire DOM using the [ng-app][ng-app-url] directive:\n\n```html\n\u003chtml ng-app=\"myApp\"\u003e\n  ...\n\u003c/html\u003e\n```\n\n```javascript\nvar view = new Backbone.NgView({\n  template: '\u003cspan\u003eHello World!\u003c/span\u003e'\n});\n```\n\nAlternatively, you may pass a `modules` option to create a new [$rootScope][root-scope-url] attached directly to the Backbone view for one or several modules:\n\n```javascript\nvar view = new Backbone.NgView({\n  modules: ['myApp'],\n  template: '\u003cspan\u003eHello World!\u003c/span\u003e'\n});\n```\n\nThis allows you to create completely isolated AngularJS managed views. The `modules` option works the same way as the second argument of [angular.bootstrap][bootstrap-url].\n\nSee https://docs.angularjs.org/guide/bootstrap for more information about bootstrapping.\n\n## Example\n\nSee the [example](example) folder for a complete example.\n\n## License\n\n[MIT License][license-url]\n\n[angular-url]: https://angularjs.org\n[backbone-url]: http://backbonejs.org\n[bootstrap-url]: https://docs.angularjs.org/api/ng/function/angular.bootstrap\n[build-image]: http://img.shields.io/travis/rochdev/backbone-ng-view.svg?style=flat-square\n[build-url]: https://travis-ci.org/rochdev/backbone-ng-view\n[license-image]: http://img.shields.io/badge/license-MIT-red.svg?style=flat-square\n[license-url]: http://en.wikipedia.org/wiki/MIT_License\n[ng-app-url]: https://docs.angularjs.org/api/ng/directive/ngApp\n[root-scope-url]: https://docs.angularjs.org/api/ng/service/$rootScope\n[route-provider-url]: https://docs.angularjs.org/api/ngRoute/provider/$routeProvider\n[version-image]: http://img.shields.io/badge/release-0.1.2-orange.svg?style=flat-square\n[version-url]: https://github.com/rochdev/backbone-ng-view","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochdev%2Fbackbone-ng-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frochdev%2Fbackbone-ng-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochdev%2Fbackbone-ng-view/lists"}