Solved

angularls and plnkr

Posted on 2016-11-21
14
16 Views
Last Modified: 2016-11-22
I have created a project using plnkr.co.  I selected angular 2 with Typescript.  When I attempt to run it,  the page says "loading..."  and that is it.

Please advise.

I have included the link here:

My Code
0
Comment
Question by:hbash
  • 6
  • 6
  • 2
14 Comments
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Did you do that from scratch or reference another plunker - it seems similar to this one
https://plnkr.co/edit/AvJOMERrnz94ekVua0u5?p=preview
Which also does not work.

Are you looking for an Angular 2 boilerplate ?
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
I literally just selected new/anular 2.0 with typescript and then saved and tried to run and it seems to be stuck on loading...
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Ah ok so that is a Plunker generated app - which is why I found others the same - that also don't work.

Will take a look.
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
Hi,

I just tried the test page and it also doesn't complete loading.  Also,  is the plnkr configuration "wizard" broken?  I would have thought it would put together a working base framework.

The test works in Chrome and not in IE.
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Work for me on Chrome...
work for me
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
Yes.  For me as well (see last sentence of above comment).  However,  it doesn't explain the issue with using the plnkr template(s).
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 82

Expert Comment

by:leakim971
Comment Utility
I think Plunker did not update this template... maybe just because they're not aware of the issue...
Who know?
https://github.com/angular/angular/issues/5957
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
That issue 5957 is almost a year old.  How is it possible that they're not aware of this?  It is an issue with their most current template.
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Do you really ask me the question ? :D
Check this too (more recent) : https://plnkr.co/group

This is due to a bug in Zone.js (see: https://github.com/angular/zone.js/issues/456). The bug has since been fixed in more recent zone.js releases but the Angular team still needs to reflect those new versions in their docs and plunk seeds.

To fix this locally, just change the version of zone.js referenced in your plunk to 0.6.24 or 0.6.25.
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
 <head>
    <base href="." />
    <title>angular2 playground</title>
    <link rel="stylesheet" href="style.css" />
    <script src="https://unpkg.com/zone.js/dist/zone.js"></script>
    <script src="https://unpkg.com/zone.js/dist/long-stack-trace-zone.js"></script>
    <script src="https://unpkg.com/reflect-metadata@0.1.3/Reflect.js"></script>
    <script src="https://unpkg.com/systemjs@0.19.31/dist/system.js"></script>
    <script src="config.js"></script>
    <script>
    System.import('app')
      .catch(console.error.bind(console));
  </script>
  </head>

Open in new window


I'm a weenie with angular.  Can you tell me where and what to make that change?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
What are you talking about ?
You already have your plunker running fine on both links :
https://plnkr.co/edit/AvJOMERrnz94ekVua0u5?p=preview
http://plnkr.co/edit/WTfHRTOjoPIIQmoVF5fx?p=preview

the zone.js has been added.
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
Ok.  I see that neither work in IE.  But they work in chrome.

Thanks.
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Angular and IE is not in love from the beginning of the story of the framework
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
date format angularjs2 16 36
convert jquery code to javascript 3 45
Phone Dialer 5 35
jqplot Pie Chart - javascript 2 6
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now