N
N
nazandr2016-05-30 01:22:56
JavaScript
nazandr, 2016-05-30 01:22:56

How to install angular 2 in cordova project?

I just started learning angular 2 and I want to write a project for iOS. help me please

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GTRxShock, 2016-05-30
@nazandr

If you learn from the official guide, then in the tsconfig.json file, add "outDir": "dist" to the "compilerOptions" section,
so that the transpiler puts .js files in the dist folder and does not mix with .ts
And in the SystemJS settings (systemjs.config. js) specify this folder (8-9 line approximately):

var map = {
    'app':                        'dist', // изначально тут указана папка app

Transfer the index file, SystemJS settings, dist folder, styles and library files to cordova. Further already :)

A
Anatoly, 2016-05-30
@taliban

Just like in any other project, it compiles js and connects it to an html file. Is there an html file in cordova?

N
nuclear_kote, 2016-06-04
@nuclear_kote

ionic is. everything that needs to be done has already been done in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question