Tagged Questions
0
votes
1answer
18 views
Capitalization in angular's dynamic attribute directive
I'm using Angular 2 and Ionic 2 to build an app. Currently, I'm building a dynamic side menu. Ionic provides a directive called menuClose to signify that clicking a button will close a side menu.
I ...
0
votes
1answer
22 views
How to use an Angular2 Directive to inject DOM element?
I would like to create an Angular2 directive to display a tooltip when the user hovers over a list item.
The Angular2 docs look like something like this:
@Directive({ selector: '[myUnless]' })
...
0
votes
4answers
40 views
Angular2 Http Call not firing
Context :
Following several tutorials, I am testing authentication with Angular2 and JWT. I come with a component and a service :
app.component.ts
user.service.ts
App component (and template) ...
0
votes
0answers
12 views
Update Video src value when button is being clicked using angular 2
I am trying to update/change the video src path when clicking on buttons. After initializing the video tag, it works, but changing the value doesn't update it. I have tried using [src], src, [(src)] (...
0
votes
0answers
32 views
Components in angular 2
Sorry for not having proper title, I am not sure what title should I give to my problem
Well, I have an app which has top-nav, top-filter, etc which are common, only the view changes as route change, ...
0
votes
0answers
14 views
“Cannot find primary outlet to load 'UsersComponent'”?
I'm using ng2-final in MVC 5 on .NET 4.5.2. I'm getting the following error when my UsersComponent is triggered to load:
"Cannot find primary outlet to load 'UsersComponent'"
Can you recommend what ...
0
votes
0answers
17 views
Routing issues in rendering AngularJS components from Angular2 routes
I have a Hybrid(Angular1 and Angular2) repo which having mix of Angular1 and Angular2 routers. Followed the sample from https://vsavkin.com/migrating-angular-1-applications-to-angular-2-in-5-simple-...
0
votes
0answers
21 views
generating power point files in angularJs 2
I have a requirement to create power-point files in my app written in Angular2, is there any library available to generate power point files for Angular2, I should be able to export data not only in ...
-1
votes
2answers
27 views
Angular 2 Forms . Passing data from one component to another with a text box on clicking of a button
I am a beginner to angular 2 . I want a data to be typed in a textbox which on entering (say on click of enter button ) i need the data to be taken to another component where i can append the data to ...
-1
votes
0answers
14 views
Deploy angular2-seed project [on hold]
Can someone help me understand how to deploy Angular 2 app on heroku. I have pull down angular2-seed project from angular repositories. It runs perfectly fine locally but I can't seem to find a ...
2
votes
2answers
33 views
Triggering global behavior for a “loading” component such as with Angular 1's $emit
I'm making a loading overlay component in Angular 2, and I realized, I'm not sure how to trigger it. In Angular 1, I would emit something and listen in the loading spinner directive, to hide or show. ...
-4
votes
0answers
18 views
I am working on android hybrid apps using IONIC 2, can any one suggest how to integrate google map in IONIC 2 [on hold]
I am working on maps in ioic 2, can anyone please tell me how to integrate maps in android. thank 2.
0
votes
1answer
46 views
Where is dist/out-tsc-e2e when running ng e2e?
I'm running ng e2e.
I'm expecting to see compiled javascript in dist/out-tsc-e2e; however, I'm not seeing this directory (out-tsc-e2e).
// tsconfig.json
{
"compileOnSave": false,
"...
-1
votes
0answers
62 views
AngularJs vs Angular 2 [on hold]
i need a hint for a new project that will start shortly.
The project consist in an admin template at the base with a series of pages with table to display data, some chart, popup to display/insert ...
0
votes
1answer
26 views
Inheritance in e2e tests [Jasmine, Protractor, TypeScript]
In my project I am using protractor + jasmine + TypeScript for e2e tests. I have already benefit from TypeScript glory of inheritance in my page object files (for example, I got some BasePageObject ...
0
votes
1answer
38 views
Share and update Observable data in Angular 2
I have 2 components - object-list and search-filter in my app. Also I have a fetch-service with getObjects(page, filter) method. I want to implement a scenario where object-list fetches all data via ...
0
votes
1answer
37 views
Is there a way to pass an Angular 2 attribute directive a function
In Angular 1, you could pass a function as an argument to an attribute directive using &. I know you can pass a function as input to an element directive (component) in Angular 2 using the
<...
2
votes
1answer
25 views
Angular2 two-way binding stop work after google maps callback
I work on an angular 2 application. I have a google maps in it, with autocomplete. I have an input (with google autocomplete), and a search button. When i hit the search button, I send the input data ...
-3
votes
1answer
35 views
Angular1.x and angular2 together
Is there any problem to use angular2 in a website that uses angular 1.x theme (HTML theme develeoped using angular 1.x).
Any challenges need to be faced while developing?
1
vote
1answer
25 views
How to integrate file plugin for ionic 2
I was trying to develop a windows 10 application for windows 10 mobiles using Ionic 2, I have a scenario for offline data storage, I tried the sqlite plugin but it was in vain and finally my thoughts ...
1
vote
0answers
48 views
Angular 2: How to autherization header to http.get request?
I am totally confused with what is going on here.
Spring Boot backend accepts requests sent with X-Auth-Token header values. It works fine if I send the request from ARC client.
GET request from ...
0
votes
1answer
28 views
Is it possible to animate Angular 2's ng-switch
Is it possible to animate this at all? I have this block of code
div([ngSwitch]="switchState")
ul(fxLayout="row", fxLayoutAlign="space-between", *ngSwitchCase="0")
some-list
ul(fxLayout="row", ...
0
votes
1answer
25 views
Angular2 Physics animation
I'm looking to perform some physics animations and have the animation carried out on a set of DOM elements. Not canvas. Very important: Not canvas.
I have it working, but the performance is slower ...
1
vote
1answer
36 views
How to preload information into textbox as page open-angular
I am beginner anyway. I am trying to preload data back into my textbox as the page opens up. Now, when i hit the button preload, it opens a new page and that is where i want the data to preload of the ...
1
vote
1answer
34 views
What these angualr-cli do: inline.bundle.js, vendor.bundle.js, main.bundle.js?
If I check the index.html file of angular 2 project created with angular-cli I can see the page only inclue 3 files from dist folder:
inline.bundle.js
vendor.bundle.js
main.bundle.js
But now I am ...
-3
votes
1answer
35 views
How to format datetime in angular2? [duplicate]
My server returns the json as follows,
[{"_id":"5890b47a6166c457ffdee2ba","description":"Imagine Dragons","name":"Imagine Dragons","place":{"name":"The Fox Theater at Foxwoods Resort Casino","...
-2
votes
0answers
18 views
ng2 documentation sources? [on hold]
What's the best source of ng2 api documentation? I was thinking it would be angular.io. I found an example on the web written in ng2 beta and it referenced an AsyncRoute class. I searched docs on ...
1
vote
1answer
22 views
Ionic 2 - How do I get back to the start page of a given tab
My APP works with tabs, inside these tabs I have buttons that open other pages using push, when I click on tab 2, and click on a button, it opens the normal page, then I click on tab 1, and then click ...
2
votes
0answers
25 views
How do I test drag and drop in Angular 2 unit tests
I am working on an Ionic 2 app which has the functionality of tinder cards. I would like to test my card throwout events which happens when cards are dragged more than a limit. I am using swing ...
0
votes
1answer
24 views
AnularJS anonymous component replace inner scope
Hi I am using Angular with ES6, now I want to get rid of the $scope since Angular2 will not use it anymore and I want to create futureprove code,... this works:
let tab = this.tabManager.getArea.open(...
1
vote
1answer
27 views
How to add condition in routers of angular2
My routes are :-
const appRoutes: Routes = [
{ path: 'alert/:id', component: AlertDetailComponent },
{ path: 'alerts', component: AlertsComponent },
{ path: 'dashboard', component: ...
0
votes
3answers
51 views
Angular 2 + Ionic 2: how to change the date format in controller?
I'm getting date in loop from sqlite database. The format is like "Wed Feb 01 2017 21:54:24 GMT-0200". But I want to change it as 'dd/MM/yyyy'.
How can I change format in the controller?
Example my ...
0
votes
0answers
34 views
Angular Router nested named outlets
I'm using Angular (v2.4.5). Is it possible to have nested named outlets?
Here is my situation:
//app.component.html
<router-outlet name="test"></router-outlet>
<router-outlet></...
0
votes
0answers
36 views
Angular 2 not showing element value in view but does show in inspect element
I'm currently developing a small website. On this website I want the navigation bar and a table with cells to show values depending on the language the browser is in. This works fine, but here's the ...
0
votes
1answer
35 views
Angular 2 Post: Not sending 'content-type: application/json' to server
I'm really struggling with POST-requests in Angular 2. I'm able to send a request with certain parameters, but my backend (PHP Slim v3) can't get the parameters. Therefore I investigated my request, ...
-8
votes
2answers
74 views
What are the advantages of Angular2 over Angularjs
I came to know that Angular 2 is completely different from AngularJS .So, what are the main advantages of Angular 2 over Angularjs
0
votes
0answers
16 views
How to overcome the error when AOT-compilation 'Cannot determine the module for class'?
JIT-compilation is worked. But, I decided to compile application using the
AOT-compilation. And I get the following error:
Cannot determine the module for class ProfileComponent
Cannot determine the ...
0
votes
0answers
25 views
Best practice passing to child html tag with button click binding angular 2
So i have the following structure, for the example i just simplify it, there is few rules that i cannot change due to the bootstrap template that i'm using. I have a parent component that using a ...
-1
votes
1answer
28 views
AngularJS 2: Changing the value of a variable outside of the class that the variable belongs to
I have a very simple question which I don't really know how to Google... I've 2 components here, the first one is playlist.component.ts
import {Component} from 'angular2/core';
import {Video} from '....
-3
votes
0answers
29 views
How to implement bogus search validation in angular 2?
I have a form which contains Destination, Date, Room and Search(button). "Destination" field(input) which should allow user to select city from "Pop-up" or "Dropdown list". If user entered any char ...
0
votes
1answer
29 views
Can't get object properties in view
I'm having trouble displaying my object details in the html view (using ionic2). The below outputs the correct value in the cart.ts file(outputs carrot).
this.cart = resultsFromAPI
console....
-1
votes
0answers
21 views
ng2-charts issue 'TypeError: Cannot set property stack of [object Object] which has only a getter'
I am working with ng2-charts and have a simple chart coded but getting an error i am struggling to decipher... Apologies for the lengthy error printed here...i dont know what is important and what is ...
0
votes
1answer
33 views
Angular 2 TypeScript Error: Can't resolve all parameters for ProductsService
I am getting the following: "Error: Can't resolve all parameters for ProductsService".
Ref: http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-data-binding
product.model....
0
votes
0answers
27 views
Using NeXt UI Toolkit with Angular2+TypeScript
I am currently trying to use NeXt UI Toolkit with Angular2+Typescript, and there are no examples (that I have found) of how to do this online. I am very new to Angular2+TypeScript, so I was hoping one ...
0
votes
2answers
37 views
angular2 http resolve promise
good evening fellas
I'm trying to get into angular2 and got a problem that keeps me from going on.
Service:
getProject(id: number): any {
var url = this.ProjectsUrl + '/'+ id;
return ...
-2
votes
1answer
31 views
Angular 2 get Access to children
hello there is some angular2 dom find operation ? I dont want to do something like this : "this.uploadDiv.nativeElement.children[0].children[0].children[0]".
I miss Jquery so much xd There is some ...
0
votes
1answer
35 views
angular2 - service return a observable in subscribe
i have a problem.
My service return one object with more array, i send in navparams for my page and subscribe, but in my page returns observable, i dont use observable.
How resolved this?
service
...
1
vote
1answer
37 views
Angular universal installation on existing angular 2 app using cli
I am facing a few issues while implementing the universal cli on existing angular 2 app by following the instruction from the link below
https://universal.angular.io/quickstart/
On the first command ...
0
votes
0answers
26 views
Sending Emails with CKEDITOR -angular 2
How can I send emails with CKEditor please or I should instead use TinyMCE?
<ckeditor
[(ngModel)]="ckeditorContent"
[config]="{height:'50px', width:'50%'}"
(change)="onChange($event)"
...
1
vote
0answers
30 views
What should we unit test for Angular2 Component
I am newbie to Angular2. I wrote a small application in Angular2 which has few components. I want to write unit tests for my client application.
Someone suggested me when we write unit test for a ...