Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

universal has too many restrictions #490

Closed
@orange4glace

Description

@orange4glace

Note: for support questions, please use one of these channels: https://github.com/angular/universal/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...
  • bug report
  • [ x ] feature request
  • support request => Please do not submit support request here, see note at the top of this template.
  • What modules are related to this pull-request
  • express-engine
  • grunt-prerender
  • gulp-prerender
  • hapi-engine
  • universal-preview
  • [ x ] universal
  • webpack-prerender
  • Do you want to request a feature or report a bug?
    feature
  • What is the current behavior?
    Using universal has too many restrictions. At first, I decided to use Universal because of disapproval of adsense since adsense doesn't approve apps which uses ajax loading.
    So I immediately dived into universal. But it comes out universal has too many restrictions to be applied my app.
    My application uses jQuery things and Pusher (https://pusher.com/). ok. jquery definitely manipulate DOM directly. let's do not talk about this.
    But Pusher, even it doesn't manipulate DOM but only does window.addEventListener things and universal doesn't allow it so I can't use this either.
    Since Universal inject(or copy) every app.component and relative sources to server codes, there no way to render my app in serverside without not using Pusher of jQuery things. (and I can't use it in node because node has no document or window)
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
  • What is the expected behavior?
    there're some scripts touch document or window object, but It never affects to 'VIEW'.
    So, if there's a kind of 'exclusive' items, and universal doesn't copy that code to server code, it will be good.
  • What is the motivation / use case for changing the behavior?
    My app never works with universal :(
  • Please tell us about your environment:
  • Angular version: 2.0.0-rc.4
  • Language: TypeScript latest
  • OS: Windows
  • Platform: Nodejs
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions