0
votes
0answers
5 views

Angular <form> <iframe> with mustached attribute @target @name opens new tab

I need load form response to IFrame but I want to mustache IFrame @name. In this case it opens new tab in browser. HTML <div ng-app="test" ng-controller="ctrl"> <form action="/" mathod="...
0
votes
0answers
12 views

Electron Angular playing static audio files

I try to develop a native app using electron and angular2. Its purpose is to conduct Psychology experiments connected with sound perception. In order to do this, I want to play sounds that will be ...
0
votes
0answers
15 views

downgrade component that uses @ContentChild(TemplateRef) seems not working at all

This is a very simple component just for the example. It will take the <template></template> innerHTML if given and use it for display: @Component({ selector: '[myComponent]', ...
0
votes
0answers
10 views

column resizing without restricting the other columns - uigrid

I saw uigrid tutorial for column resizing http://plnkr.co/edit/?p=preview . Here you can widen the columns without restricting the other columns because the width of the column is defined. I can't ...
0
votes
0answers
17 views

While downgrade component, the @ContentChild(TemplateRef) is undefined

Using this inside any component: @ContentChild(TemplateRef) public myTemplate: TemplateRef<any>; That will work in angular 2, I could read this.myTemplate But after downgrade the component ...
-4
votes
0answers
30 views

how to use core directives in custom directive angular2

I want to use ngIf in my custom directive using angular 2. Below is my angularjs 1.6 code, .directive('hasPermission',['ngIfDirective', 'userPermissonsService', function(ngIfDirective, ...
0
votes
0answers
16 views

saving remote images in zip with JSZip

I'm currently trying to make a zip with images with there url and JSZip. But, all the images are the same size and when i'm trying to open it, the application used for show the image is saying "We can'...
1
vote
0answers
13 views

Displaying an angular 2 component inside an Angular 1 container

I'm trying to display an Angular 2 component inside an Angular 1.6 container (not sure if terminology is correct). How come the text from the Angular 2 component is not rendered? i.e This is text ...
2
votes
1answer
29 views

ng2-datepicker + not supported in angular 4

I am trying to upgrade from angular 2.4.0 to angular 4. When i tried it, i found following peer dependency errors: Tried installing latest datepicker: npm install ng2-datepicker –save Got following ...
0
votes
0answers
27 views

Angular 2 - Basic form validation not working anymore

I have an angular 2 application which contains a basic form with inputs and basic html validation. Something like: <form (onSubmit)="submit()"> <input type="email" /> <input type="...
0
votes
1answer
24 views

Ionic ion-toggle and radio-group click event?

I am using Ionic3, and would like to have an html element (ion-toggle and radio-group), that if I click on, it fires a javascript function. As you can see below, I gave added a ng-click attibute ...
0
votes
1answer
28 views

Uninstall Angular.js completely

Is it safe to just delete all angular files and folders? Tried to find the answer, but there's nothing I could find about uninstalling angular.
0
votes
0answers
27 views

Application using bootstrap 3 and 4 together has conflicts

I have an App that uses bootstrap 3 and 4. Its a pretty massive application and built on combination of angular 1 and 2 and we already have a lot of scss files written for our angular 1 application. ...
0
votes
0answers
27 views

Migrating from Angular1.x controllers to angular 4 component

I came across angular app which is basically just one 2000 lines of controller code for a single form. var app = angular.module("sampleapp", []); app.controller("requestform", function($scope, $...
-2
votes
0answers
20 views

Simulate input keyboard in Angluar 2

I'm trying to do something like https://www.peteranswers.com that you write something in an input and it shows another thing. Something like when in the petition question on peteranswers you put the ...
0
votes
1answer
33 views

How to pass JSON from Django to Angular

Usually Angular get from HTTP request the JSON from server side (like Django). But, to accelerate rendering, would like to write down on server side the JSON into a Javascript VAR and let proceed ...
0
votes
2answers
45 views

Ng-hide and last:child CSS

I have; <div class="exampleDiv"> <element1></element1> <element2></element2> <element3></element3> </div> then some CSS using the last:...
-9
votes
0answers
30 views

Convert Angular template driven form to model driven form [on hold]

Please convert this angular [Template Driven form][1] to model driven form. [1]: https://plnkr.co/edit/cP6Q3uUHLyywEiPwN0kC?p=preview
-5
votes
0answers
21 views

Angular cli build inline.js,styles.bundle.js and main.bundle.js 404 error [on hold]

I am trying build the project by using the ng-build but throws a 404 error. Index.html and all the bundled js files are in the same directory enter image description here
-1
votes
0answers
17 views

what's happening in export class AppComponent {} [on hold]

I am interested in knowing about the internal functioning. Who's calling who, and how much of the glue is involved if any. How does the export behave differently than module.exports? How much of it ...
0
votes
5answers
81 views

In AngularJS how can i Store data into local storage on click of reload button in the browser?

In AngularJS how can i store data into the localstorage on click of reload button in the browser? I tried with the following code.still, it's not working window.onbeforeunload = function (event) { ...
2
votes
2answers
30 views

ionic calling a service

I defined a service in IONIC like this (file reddit.service.ts): import {Injectable} from '@angular/core'; import {Http} from '@angular/http'; import 'rxjs/Rx'; @Injectable() export class ...
0
votes
1answer
30 views

Proper Way To Share Data Across Components Through Service That Automatically Updates

I am currently trying to implement a system where a user can log in on a web page and view some stats for their account. There is a component for a login form and a component for the stats. I know ...
0
votes
2answers
34 views

Angular 2+ can't find Angular 1.X to bootstrap

I'm trying to bootstrap an Angular 1.X app with Angular 2+ (Angular 4.1.0 at the time of writing this question). I followed the online guide to the T but can't seem to make headway. I'm using a ...
-2
votes
0answers
40 views

What is the main differences between Angular1 and Angular2 or 4? [closed]

Can anyone please tell the main difference between angular js and angular framework?
1
vote
3answers
29 views

In angular2, how can I detect is there any ng-content?

plnkr demo here @Component({ selector: 'my-demo', template: `This is <ng-content select=".content"></ng-content>` }) export class DemoComponent { name = 'Angular'; } @Component({ ...
0
votes
1answer
29 views

`$state.go` doesn't pass value to `$stateParams`

I have an angular code in componentA $state.go('home', {selectedFilter: "no_filter"}); and this code in componentB if ($stateParams.selectedFilter === 'no_filter') But i still get $stateParams....
0
votes
0answers
28 views

Detect reload browser alert on angular

sometimes on angularJS js, I have got "reload" alert from the browser with the message "are you sure you want to reload the page"? I am using model but its happen also if I'm not opening the modals, ...
0
votes
2answers
26 views

Using the football-data api with Angular

I'm trying to make a successful api call to the football-data api using Angular. Here's the documentation: http://www.football-data.org/documentation Using the sample code in the documentation, I ...
0
votes
1answer
46 views

How to avoid the flicker of Angular 2 to a new page of the url?

When I enter my page: http://localhost/dashboard by typing it in the url, and then entering another page http://localhost/owners, also typing it in the url, produces a blink. How can I avoid it, ...
1
vote
1answer
49 views

adding Sticky FAB in Angular 2 Material

I want to add a sticky button at the bottom of screen (not page) in my angular 2 material project. I tried some tweaks but currently when I scroll down the button doesn't stays where it was supposed ...
1
vote
1answer
21 views

How to preset state of ui-router programmatically

I have implemented an md-sidenav which allows to navigate to different html templates by selecting it in the sidenav list. What I am trying is to preselect the first item in my md-sidenav when the ...
0
votes
2answers
21 views

Trying the Master/Detail of Angular2 Tutorial

I followed step by step the official tutorial to learn Angular2. I allways did exactly what it indicates but I can't get the heroes list through ngFor directive. So, this my code: app.component.ts ...
0
votes
0answers
18 views

internet explorer 11 Authoraization Error in Angular 4

I have created a pdf viewer component in angular 4 and I am getting authorization error while opening the doc. here is the HTML templet and I am also using the DomSanitizer to ...
0
votes
0answers
18 views

How to read data from azure blob in angular

I am having a azure blob like this https://xyz.blob.core.windows.net/myxyz/xyz/backup When i access this using postman or azure storage explorer i get a string in response ex--- "Pizza" I want to ...
0
votes
0answers
17 views

On the behavior of the function changing to input after clicking on character

I am making a simple todo application using Angular 2. When todo is clicked, it changes to input and implements a function that can update it. Currently it is implemented with the following code. <...
0
votes
1answer
32 views

test event that grabs e.currentTarget in Angular using karma

I've been trying to get this work for a lot of hours now. I want to test an $scope.function that makes an api call based on target = e.currentTarget and input.val() but i'm in a dead point right now. ...
0
votes
2answers
38 views

Angular 2 NG-Completer calling keyup event twice?

I have a simple element inside my HTML. When a key is released inside of it, a call is made to a method that writes to the console. The issue I'm having is that the console is being written to twice. ...
2
votes
1answer
25 views

Ionic on a web server

I have n Ionic 3 app. It builds and runs on Android and iOS as expected. Is it possible to also use the app on a website. i.e. Have it run in a browser. The app can be tested in a browser by doing: ...
0
votes
0answers
37 views

Routing to basic HTML pages in Angular4

I am building a website with Angular 4. Besides having a couple of "complex" components, I need to display some basic HTML pages: start (landing page) terms of use imprint ... I want the router to ...
0
votes
1answer
32 views

ngModel values are not getting displayed in controls in angular2

I have a model which is an array element and it's corresponding HTML view is as below: <div *ngIf="flag" > <table id="table" class="table table-hover table-bordered table-mc-light-...
1
vote
2answers
49 views

How to filter data in ng-options of a select element?

Hi there guys I am trying to filter some data in the ng-options but it isn't working as expected. I have a group of hostels from which user will select one and then selects from rooms. HTML: <...
0
votes
1answer
43 views

Angular 2.4 No component factory found. Did you add it to @NgModule.entryComponents?

I was following one of the guides around to add dynamic components. The only difference I'm seeing with those guides is that I'm launching the dynamic component from a selector (instead of an event ...
0
votes
2answers
205 views

Angular CLI: Cannot read property 'config' of null

Recently upgraded my application from Angular 2.3.0 to Angular 4.0.3. In the process also upgraded angular-cli. If project cloned to a new directory, it is throwing: Cannot read property 'config' ...
2
votes
2answers
51 views

what does slash double underscore slash mean? /__/

On github i see this path to a file: importScripts('/__/firebase/3.8.0/firebase-app.js'); importScripts('/__/firebase/3.8.0/firebase-messaging.js'); importScripts('/__/firebase/init.js'); What does ...
0
votes
1answer
20 views

Search data in Observable

I'd like to have a search input, that display the result on keypress. At the moment, this is what I have : mylist: Observable<MyData[]>; term = new FormControl(); ngOnInit() { this....
1
vote
0answers
13 views

md-no-cache=“true” efecting none

I want to add auto-complete on site, i want to perform when some chips is selected it should be remove from drop-down and once its unselected it should back to the drop-down. i have read issues from ...
0
votes
1answer
58 views

Upgrading AngularJS app to an hybrid Angular-1.6 / Angular-4 kills the perf

I've just updated my AngularJS 1.6 app by following the Angular 4 upgrade guide. Basically I've added new angular 4 dependencies in package.json, bootstrapped the app via UpgradeModule and created a ...
1
vote
1answer
34 views

Angular relational models? Can a model refer to another model?

I have a multi-level navigation structure like so which produces the top nav: [ {id: 1, label: 'Home', icon: 'fa-home', subitems: []}, {id: 2, label: 'Sitemap', icon: 'fa-sitemap', subitems: []}, {id:...
0
votes
1answer
48 views

How to create dynamic URLs in sitemap.xml using angular 2?

How to create dynamic URLs in sitemap.xml using angular 2?. I have tried with npm sitemap package. But i cannot create sitemap.xml. can anyone tell how to to create dynmic urls in angular 2?