Please ask your question to the community at StackOverflow.
This gist was linked from the UI-Router issue tracker. This issue tracker is reserved for feature requests and suspected UI-Router bugs.
log4j:ERROR Error initializing log4j: null | |
java.lang.reflect.MalformedParameterizedTypeException | |
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:60) | |
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:53) | |
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:95) | |
at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:104) | |
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140) | |
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) | |
at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94) | |
at java.lang.reflect.Method.getGenericParameterTypes(Method.java:300) |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.Context; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.Response; |
Please ask your question to the community at StackOverflow.
This gist was linked from the UI-Router issue tracker. This issue tracker is reserved for feature requests and suspected UI-Router bugs.
npm install -g jspm@beta
jspm init
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
This guide will show you how to upgrade from Angular beta-* to rc-* JSPM Guide Starting at RC0, all the modules are broken out seperate. See: https://github.com/angular/angular/blob/master/CHANGELOG.md#200-rc1-2016-05-03
First off, to prevent JSPM from brining in a crazy amount of Angular2's package.json depedencies, you need to override the default config. For more information on this see: angular/angular#7412
package.json
Years ago, some smart folks that worked on JS engines realized that not all JS that's loaded into a page/app initially is needed right away. They implemented JIT to optimize this situation.
JIT means Just-In-Time, which means essentially that the engine can defer processing (parsing, compiling) certain parts of a JS program until a later time, for example when the function in question is actually needed. This deferral means the engine is freer to spend the important cycles right now on the code that's going to run right now. This is a really good thing for JS performance.
Some time later, some JS engine devs realized that they needed to get some hints from the code as to which functions would run right away, and which ones wouldn't. In technical speak, these hints are called heuristics.
So they realized that one very common pattern for knowing that a function was going to run right away is if the first character before the function
keyword was a (
, because that usually m