angular2-meteor

Angular2 SEO - How to make an angular 2 app crawlable

不打扰是莪最后的温柔 提交于 2019-11-28 03:29:20
I am building an Angular 2 app using the Angular-Meteor framework . I would like to achieve fast and consistent indexing by google and other search engines, and allow Facebook sharer and other scrapers to generate previews of my JS-generated content. Usually SPAs use the PhantomJS to render the page server-side and send the static HTML to the client. Of course I can spawn PhantomJS myself when I intercept an _escaped_fragment_ or when I see the google or scraper user agent, but I always experienced memory leaks and orphan Phantom instances when spawning PhantomJS directly on websites with a

Attempt to use a destroyed view: detectChanges

馋奶兔 提交于 2019-11-27 18:16:57
I am creating a simple UI using Angular Meteor 2. 1) I have a top navbar component which has a 'logout' button. 2) On clicking 'logout' button it redirects to 'login'. 3) Then I see this error in console : EXCEPTION: Attempt to use a destroyed view: detectChanges Exception: EXCEPTION: Attempt to use a destroyed view: detectChanges browser_adapter.js:77 EXCEPTION: Attempt to use a destroyed view: detectChangesBrowserDomAdapter.logError @ browser_adapter.js:77BrowserDomAdapter.logGroup @ browser_adapter.js:87ExceptionHandler.call @ exception_handler.js:57(anonymous function) @ application_ref.js

Angular2 SEO - How to make an angular 2 app crawlable

寵の児 提交于 2019-11-27 00:04:01
问题 I am building an Angular 2 app using the Angular-Meteor framework. I would like to achieve fast and consistent indexing by google and other search engines, and allow Facebook sharer and other scrapers to generate previews of my JS-generated content. Usually SPAs use the PhantomJS to render the page server-side and send the static HTML to the client. Of course I can spawn PhantomJS myself when I intercept an _escaped_fragment_ or when I see the google or scraper user agent, but I always

Attempt to use a destroyed view: detectChanges

萝らか妹 提交于 2019-11-26 19:23:05
问题 I am creating a simple UI using Angular Meteor 2. 1) I have a top navbar component which has a 'logout' button. 2) On clicking 'logout' button it redirects to 'login'. 3) Then I see this error in console : EXCEPTION: Attempt to use a destroyed view: detectChanges Exception: EXCEPTION: Attempt to use a destroyed view: detectChanges browser_adapter.js:77 EXCEPTION: Attempt to use a destroyed view: detectChangesBrowserDomAdapter.logError @ browser_adapter.js:77BrowserDomAdapter.logGroup @