Questions tagged [angular2-cli]

124 questions
1
vote
1 answer

Angular 2 CLI Sample that works with AoT

Can anyone please share an example that has AppModule and another module lets say HomeModule, with a lazy loading route to HomeModule and that works with Angular 2 Cli AoT compilation option. When I try this I get error "HomeModule is not an…
Naveed Ahmed
  • 10,048
  • 12
  • 46
  • 85
1
vote
1 answer

Errors in importing Neo4j Javascript Driver to Angular 2 CLI

Helloes, I'm having some module not found errors while trying to use Neo4j driver in my Angular 2 CLI app. I might be missing something trying to import it. I installed it with: ng install neo4j-driver In my service.ts: import…
Mithgroth
  • 1,114
  • 2
  • 13
  • 23
1
vote
0 answers

Angular 2 CLI project - Error: Duplicate identifier Promise - how to solve this?

I have an angular2 CLI project. Two days ago, because my Webstorm IDE complained about new Promise and string[].map could not been resolved, i forcefully installed es6-promise inside node_modules/@types folder using: npm install @types/es6-promise…
AIon
  • 12,521
  • 10
  • 47
  • 73
1
vote
1 answer

Angular2 CLI with electron

I am trying to set up an Angular2 CLI project in electron and am not quite sure where to start after getting the basic Angular piece generated by the CLI set up. I have used Angular2 with electron successfully before, but that was not with the CLI…
1
vote
2 answers

Logging with ng serve for CLI angular2

I have a project running on the CLI for Angular2. During local development, I'd like to see the http requests the come in. The server is started using ng serve Does anyone know how to turn logging on for this?
AFrieze
  • 844
  • 1
  • 10
  • 26
1
vote
1 answer

Angular2 has no exported mng error

I have a lot of errors after updating an angular2 project from RC2 to Final 2.0.0 Most of them read: has no exported mng 'such and such' Since I just got started with angular2 it would be great if someone could point me into a general…
mahatmanich
  • 10,791
  • 5
  • 63
  • 82
1
vote
1 answer

Angular 2 CLI on Github Pages deep linking falis when using custom url

I'm hesitant to ask what seems to be such a simple question but I have searched all afternoon for an answer and nothing seems to cut it. In fact, I'm yet to find a similar question - which is usually a sign that the real problem is somewhere between…
1
vote
1 answer

executing php files in a angular2cli app

Creating an angular2 app using angular2cli the php files are not being compiled correctly wondering if the server that comes with angular cli understand php. If not are there any suggestions for angular2cli to understand php
user2674150
  • 57
  • 1
  • 10
1
vote
0 answers

How does Angular 2 CLI load plugins for build (for instance for the mobile-toolkit)

In former versions the CLI had a huge broccoli configuration file. Using this, one was able to define - for instance - how the CLI had to create a build. As this file is gone now, I'm wondering how the CLI knows what to do when ng build is…
Manfred Steyer
  • 479
  • 3
  • 12
1
vote
2 answers

Upgrade angular 2 dependencies inside angular2-cli project

After playing around with angular2 and following angular2 guide in thier website I tryied to move to angular2-cli but angular2-cli project doesnt have the most updated dependencies so the compiler give me some errors about some commands in the…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
1
vote
1 answer

Angular2 CLI what is different from ng build and auto reload?

When i do ng build i have a set of files in my /dist/vendor folder. But when a file change is detected with the magic scripts that reload the browser page, and some other magic that they do, my dist/vendor folder gets "screwed" somehow. Look:…
Cristian Muscalu
  • 9,007
  • 12
  • 44
  • 76
1
vote
1 answer

Using PouchDB in an Angular2 Cli Application with SystemJS and TypeScript

I've searched through dozens of questions and answers on GitHub and Stack Overflow for the past two days. I haven't found a solution yet. Hopefully someone here can help me! I have gotten PouchDB working in development mode, using ng serve and ng…
Josiah
  • 138
  • 1
  • 7
1
vote
2 answers

Angular2: Dependencies Between Apps created with angular-cli

I am using the Angular2-cli to create two applications: MyFirstApp & MySecondApp. I whish MySecondApp to import MyFirstApp so I can reuse directive/service/component. When I import MyFirstApp, I have the following compilation error: Cannot find…
Mathieu Nls
  • 2,285
  • 2
  • 17
  • 32
1
vote
1 answer

Angular 2 CLI route not displaying content of HTML

I created a new project with the Angular2 CLI, and also added a route called item. Now I try to reach the html page by calling the url http://localhost:4200/item but it only displays the standard: app is working! text, instead off the content of the…
jona jürgen
  • 1,789
  • 4
  • 22
  • 31
0
votes
0 answers

How to do page caching in angular

i am working on angular application. And wants to implement caching for user list- problem is when open any user detail and coming back to user list everytime reload. I searched and found i can do http caching. Is there any way to maintain home page…
San007
  • 762
  • 1
  • 9
  • 30
1 2 3
8 9