Title: Fix: Revised Plunker Template for new AF2 4.0 · Issue #947 · angular/angularfire · GitHub
Open Graph Title: Fix: Revised Plunker Template for new AF2 4.0 · Issue #947 · angular/angularfire
X Title: Fix: Revised Plunker Template for new AF2 4.0 · Issue #947 · angular/angularfire
Description: The current Plunker Template is now broken because of AF2 4.0's breaking changes. Here are steps to fix. My updated plunker is http://plnkr.co/edit/1lW4B4?p=preview Required changes to work without breaking In app/app.component.ts change...
Open Graph Description: The current Plunker Template is now broken because of AF2 4.0's breaking changes. Here are steps to fix. My updated plunker is http://plnkr.co/edit/1lW4B4?p=preview Required changes to work without...
X Description: The current Plunker Template is now broken because of AF2 4.0's breaking changes. Here are steps to fix. My updated plunker is http://plnkr.co/edit/1lW4B4?p=preview Required changes to work wit...
Opengraph URL: https://github.com/angular/angularfire/issues/947
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix: Revised Plunker Template for new AF2 4.0","articleBody":"The current [Plunker Template](http://plnkr.co/edit/8yY4tH?p=preview) is now broken because of AF2 4.0's breaking changes. Here are steps to fix.\r\n\r\nMy updated plunker is http://plnkr.co/edit/1lW4B4?p=preview\r\n\r\n## Required changes to work without breaking\r\n#### In `app/app.component.ts`\r\nchange ``import { AngularFire } from 'angularfire2';``\r\nto ``import { AngularFireDatabase } from 'angularfire2/database';``\r\n\r\nchange ``constructor(af: AngularFire) {``\r\nto ``constructor(db: AngularFireDatabase) {``\r\n\r\nchange ``af.database.list(`test`, {``\r\nto ``db.list(`test`, {``\r\n\r\nchange ``af.database.object(`test/i0`).set(random);``\r\nto ``db.object(`test/i0`).set(random);``\r\n\r\n#### In `app/app.module.ts`\r\nadd ``import { AngularFireDatabaseModule } from 'angularfire2/database';``\r\n\r\nadd BrowserModule `AngularFireDatabaseModule`. Revised NgModule looks like this:\r\n```\r\n@NgModule({\r\n imports: [ \r\n BrowserModule,\r\n AngularFireModule.initializeApp({\r\n apiKey: \"AIzaSyDFbuKX0UeXje-PRAvwIymYo2jk-uGqMa4\",\r\n authDomain: \"test-bc800.firebaseapp.com\",\r\n databaseURL: \"https://test-bc800.firebaseio.com\",\r\n storageBucket: \"\"\r\n }),\r\n AngularFireDatabaseModule\r\n ],\r\n declarations: [ AppComponent ],\r\n bootstrap: [ AppComponent ]\r\n})\r\n```\r\n## Optional updates\r\n#### In `systemjs.config.js`\r\nupgrade typescript version to 2.2.2 (or newer) `'npm:typescript@2.2.2/lib/typescript.js',`\r\nupgrade firebase version to 3.9.0 `'npm:firebase@3.9.0',`","author":{"url":"https://github.com/WebAddict","@type":"Person","name":"WebAddict"},"datePublished":"2017-05-05T18:49:09Z","url":"https://github.com/angular/angularfire/issues/947"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f27290d6-4082-e852-0d08-66f34be5d06f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 828E:3943F8:9F8138:CAEE9A:6B0366D6 |
| html-safe-nonce | 779f8dabdc39af5685d8142c4a14c10225a9869343beb5e71ff864e1c396005c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjhFOjM5NDNGODo5RjgxMzg6Q0FFRTlBOjZCMDM2NkQ2IiwidmlzaXRvcl9pZCI6IjYwMDI0MzU0NzA4OTg4ODk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b2010dec382649bf3be5366a6f4a567bd65a863975a3d907c97cd92bcf59bf4a |
| hovercard-subject-tag | issue:226660398 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/947/issue_layout |
| twitter:image | https://opengraph.githubassets.com/192fe274f194ab95b7a4f9fb0e81bdc514fa3ab28168ccf103b503093260a986/angular/angularfire/issues/947 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/192fe274f194ab95b7a4f9fb0e81bdc514fa3ab28168ccf103b503093260a986/angular/angularfire/issues/947 |
| og:image:alt | The current Plunker Template is now broken because of AF2 4.0's breaking changes. Here are steps to fix. My updated plunker is http://plnkr.co/edit/1lW4B4?p=preview Required changes to work without... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WebAddict |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width