Tagged Questions
0
votes
0answers
5 views
Authentication Issue - Angular 2
i am trying to authenticate my login page. I get a 303 error when i try to submit the credentials for authentication. What could be the error in my code below please? I am beginner with angular 2 ...
0
votes
1answer
23 views
Twoway data binding form exception
Hi I am getting the following error on my form
EXCEPTION: Expression has changed after it was checked. Previous value: 'Advertising'. Current value: 'Contractors'.
here is my html form
<form [...
0
votes
1answer
9 views
How to embed two different Angular 2 applications inside another Angular 2 application without using IFrame
I have two different Angular 2 applications ( say app1 and app2 ) deployed on two different servers ( server1 and server2 ) and i want to use or embed those applications inside a third Angular 2 ...
0
votes
2answers
20 views
How can I effectively reset a state using @ngrx/store?
Working example: https://github.com/abullrich91/NgrxHelp
Ignore the README file. You need to install and run Yarn (https://yarnpkg.com/en/) in ordere to get the project running.
I seem to have ...
0
votes
2answers
31 views
How to loop with *ngFor in array of objects?
I'm learning Angular2, so please forgive me if I'm asking a stupid question. I am receiving an arrays of objects and it looks like this:
obj.json
data: [
{
item: "banana"
}...
0
votes
0answers
8 views
Hybrid angular app with webpack
I'm trying to migrate angular1 app to angular2 using webpack
All the examples I found for hybrid apps using systemjs
Can I creat an hybrid angular app with webpack without using systemjs?
1
vote
0answers
8 views
What is a Visual Studio TypeScript Virtual Project? And how can I get it out of my way if I'm compiling externally?
The first part of this question is the most important. There are a lot of stack questions around Visual Studio and TypeScript and "TypeScript Virtual Projects" but I have found nothing that explains ...
0
votes
0answers
9 views
translation-not-found - Jhipster / angular
I started developping with Jhipster only 1 week ago. I followed the tutorial on the site, my application run but i have a little problem. In fact, the label seems to be wrong set up, i don't find ...
0
votes
0answers
5 views
Angular 2 - appengine python - passing simple get request
I am trying to run angular 2 at the front end and appengine python at the back end. so, I am firing up appengine python as a backend server using dev_appserver.py --port 3030 app.yaml and angular 2 ...
0
votes
2answers
33 views
Angular 2: Data binding with function call
I am developing my first Angular app and I have some troubles with data binding.
I have a component which contains the following element:
`<span>{{action.getText()}}</span>`
action is ...
2
votes
2answers
48 views
Angular 2 Rollup Tree Shaking unexpected token in RxJS lib
When I use Rollup from Angular 2 docs I get an error when trying to execute rollup config js file:
🚨 Unexpected token
node_modules/rxjs/util/isArrayLike.js (2:78)
1: "use strict";
2: var ...
0
votes
0answers
15 views
angular 2 app engine - front end post request to back end
Hi I have an angular 2 application which i would like to deploy to gae. So back end I am using app engine python. I am trying to do a simple post request from angular front end to app engine python. ...
0
votes
0answers
19 views
Angular 2 with JQuery DataTable Ajax Call
I want to call an API from my Angular 2 application with Jquery DataTable Ajax call.
Request was successful but the parameters for the request been converted to Query String Parameters when i looked ...
1
vote
0answers
32 views
What are the prefix symbols “^”, “~” and those without in the package version in package.json files? [duplicate]
Example:
"@angular/cli": "1.0.0-beta.32.3",
"@angular/compiler-cli": "^2.4.0",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60"
"@angular/cli" has no symbol
"@angular/compiler-cli" has ^ ...
0
votes
0answers
13 views
Error 404 for more than one collection in angular-in-memory-web-api
I'm using the angular-in-memory-web-api module to mock my server response. Here's the in-memory-data.service.ts
import { Injectable } from '@angular/core';
import { InMemoryDbService } from 'angular-...
0
votes
1answer
17 views
Testing a component, which depends on a route param
I have a question about testing a routed component in angular2.
Here is a simple component, which depends on a route with a parameter 'foo'. The attribute foo in the component will be set to the ...
0
votes
1answer
21 views
Wrapping ng-bootstrap datepicker in custom component
We are using the ng-bootstrap component library with Angular 2.
We'd like to keep the ngb-datepicker wrapped under a different selector in a new component. So that it can be swapped with another ...
0
votes
0answers
28 views
Which Angular framework is best for SPA application? [on hold]
I'm planing to develop a SPA application and my concern is which angular framework do i need to use? I think still Angular 2.0 is not mature and community is very less. Let me know your thought.
0
votes
2answers
40 views
How do I change the jhipster default (“/”) page?
I created an angular 2 module and routed it successfully to "dashboard." I'd like to replace the default jHipster homepage with my module, but I can't seem to make it work. Is there something special ...
0
votes
0answers
17 views
How to make delay between each animation in Angular2
I made some changes in Angular2 animation example in this plunker
I want to make animations in a way that when I click on Add All Heros or Remove All Heroes each item comes or goes during the prev ...
0
votes
0answers
17 views
Angular2 Params Only Accessible Through Parent [duplicate]
I have routes-
Widgets/:widgetId
view
edit
delete
Where Widgets is my parent route and view, edit, and delete are child routes.
Each of these child routes are their own components (...
0
votes
0answers
19 views
Angular Material md-menu position issue
Im using the md-component for Angular 2 from Angular Material. I'm following the docs instructions on how to implement it but the menu opens up below the trigger.
Here is my code
<button class="...
0
votes
0answers
17 views
angular2 : dynamically add routes not working
Angular2 question:
I have a tab component service with a method that sets the tabs; Each tab has a route to a separate component.
setTabs(components: any[]) {
// components: [{ title: 'Foo ...
0
votes
0answers
14 views
Angular 2: Edit the DOM without triggering change detection
Any change in any component triggers Angular's change detection which also checks all other components for changes. This is critical if there is alot of changes and alot of complex other components (...
0
votes
0answers
21 views
Angular 2: Random Routing
I'm struggling with Angular 2. I have defined all my routes, but when I type for instance "mysiteurl:4200/password-recovery" or "mysiteurl:4200/email-confirm/sometoken" it drives me randomly to home/...
0
votes
0answers
18 views
Typescript break points not working in Visual Studio 2017
I cannot set debug break points in typescript or JavaScript. I have an ASP.Net Core application that uses an Angular 2 front end and a Web API back end. I am using Microsoft Visual Studio 2017 RC ...
0
votes
0answers
13 views
build angular2 app to run from a folder on the webserver
I am in the process of migrating one of my app from angular 1.x to angular 2. I would like to provide a preview of the progress.
something like
{appurl}/preview
I build the app and place the output ...
0
votes
1answer
22 views
Why do i get too many rxjs file calls in my angular 2 project? (seems to be all of them)
EDIT: i have another project thats also not packaged up, and has calls for observable,subscription,subscriver (and BehaviorSubject).
this project however uses those three but not BehaviorSubject.
...
-2
votes
0answers
16 views
Log search tool [on hold]
We are building a log search tool which takes users query and searches into big log files.
I have two ways to go with:
Build a web application that downloads entire log bundle into client and then ...
0
votes
2answers
44 views
Angular 2:How to bind GET service response data to the dropdown
Clientlist.service.ts
getClientList()
{
let headers = new Headers();
headers.append('Content-Type', 'application/json');
let authToken = localStorage.getItem('auth_token');
...
0
votes
0answers
25 views
Angular 2.0 deep-linking does not work. Same from the address bar
Everything works OK when I build and navigate links in the app but typing in the address bar does not!
Eventually I want to be able to send a link to a specific app page/path via email and I am not ...
0
votes
0answers
21 views
Angular 2 Routing with nested states
I have this AppRoutingModule and HomeRoutingModule below. The first one contains some paths and imports the rest of paths from HomeRoutingModule.
My problem is how can I get the departmentId inside ...
0
votes
3answers
44 views
passing data to child component angular2 (Data recived from web service not append on child)
I am Trying to assign data after service load for better understanding watch the code .
Service
getcampaigndata(slug: any): Promise<any> {
return this.http
.get('...
0
votes
3answers
71 views
how to change html content in angular 2
JavaScript Can Change HTML Content like this:
<p id="demo">JavaScript can change HTML content.</p>
<button type="button" onclick="document.getElementById('demo').innerHTML = 'Hello ...
1
vote
1answer
21 views
Disable enter key on Twitter Typeahead?
Is it possible to disable the enter keypress on an element in the dropdown in Twitter Typeahead? I'm using Angular with Typescript.
I've tried to use preventDefault() when event.keycode === 13 on ng-...
0
votes
0answers
16 views
Uncaught TypeError: Ionic 2 with Angular 2
I'm new to the world of web technology and I am currently trying on a Geo Project with Ionic 2 and Angular 2. I have a problem where I can not get any further, could someone help me?
import { ...
-5
votes
0answers
49 views
Should I learn Angular 1.x before starting with Angular 2.x [on hold]
I don't have much experience in JS and thus im in a dilemma if i should learn Angular 1.x before starting with Angular 2.x or React? Also if i should then should i go with Angular 2.x or React after ...
1
vote
0answers
31 views
Unit testing Angular 2 JS code without using Karma
I am trying to execute the unit test cases from QuickStart Seed from Angular official site.
I want to start using only Jasmine for unit testing so I have removed karma references from the project. ...
0
votes
1answer
41 views
How to pass backend api url from command line in my angular 2 app?
I want to deploy my angular app to multiple amazon instances (more than 10). For each instance the backend api also changes.
I dont want to hardcode the api url in environment files and change ...
1
vote
1answer
41 views
Use components from local npm repository in an Angular 2 application
I have implemented a generic chart component with d3 and Angular 2. Then published it in a local npm repository so that anyone can use that chart component in their Angular project simply by running ...
-2
votes
0answers
38 views
Object { _body: error, status: 0, ok: false, statusText: “”, headers: Object, type: 3, url: null }
I am trying to send an email using mailgun api from my angular2 app by i get the error
Object { _body: error, status: 0, ok: false, statusText: "", headers: Object, type: 3, url: null }
I have been ...
0
votes
2answers
33 views
ionic2 http get fails but other work
I do not get why the following URL is not working. I am running a bunch of nearly identical requests successfully but this one is not arriving at the server. Could it be the URL length in ionic2 maxes ...
0
votes
0answers
17 views
Error: Cannot dinf module 'sax' in IONIC 2
I check-outed a project and received an error upon using 'ionic serve'
I tried using 'npm install' and also tried to clean cache.
0
votes
1answer
45 views
angular 2 cannot read property of undefined
I am getting the below error
Cannot read property 'value' of undefined
Below is my code
Template
<select class="form-control form-control-lg" formControlName="contractor" (ngModelChange)="...
0
votes
0answers
40 views
Is it possible to to post to twitter through Twitter REST API using just Angular (>2.x)?
I want to be able to post a tweet to user's timeline through my Angular application. I'm trying to access twitter API in Angular with no luck. Some of the tutorials I've seen on web seems to use some ...
0
votes
1answer
41 views
Importing external npm module in Angular2
I would like to import file-system npm library to my Angular 2 project and strictly followed these steps:
https://medium.com/@s_eschweiler/using-external-libraries-with-angular-2-87e06db8e5d1#....
0
votes
2answers
31 views
<svg> <use> in edge doesn't appear [angular 2]
I have this code, which works perfectly fine in chrome:
<html>
<head>
...some tags
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
...
0
votes
0answers
56 views
Error: (SystemJS) Unexpected token < SyntaxError: Unexpected token < at eval (<anonymous>) Angular 2
I am trying to use full page with angular 2,
I am getting the below error when importing it in my app.module.ts.
"(SystemJS) Unexpected token <
SyntaxError: Unexpected token <
at ...
2
votes
1answer
51 views
Unable to load ng2-fullpage in my angular-2 quickstart app
I am trying to use full page + angular2:
I am somehow unable to load the ng2-fullpage package to use,
below are my files:
systemjs.config.js
(function (global) {
System.config({
paths: {
...
0
votes
2answers
33 views
How to prevent Angular 2 from appending # to my url?
I've developed a basic to-do app in Angular 2 with basic routing. When I click on a link, Angular automatically appends # at the end of my link. For example, if I want to route to the notes page, ...