Jasmine.createspyobj "Cannot Read Property 'template' of Undefined"

Angular five CheckBox Filter Data

I am trying to filter my information by checkbox store-sidebar.component: <ul class="list-unstyled scrollbar"> <li *ngFor="allow category of categories; let i = index"> <characterization ...

  • 343

Download file with angular five and Leap boot

I'm trying to download a file from a specific directory everything works fine in the dorsum-cease when I test the service, but when I try it from the front end-stop I get this error and the pop/up save doesn't ...

  • 39

Why Guard doesn't work in nested route - Angular five

I've created Guards for protection against entry to pages with insufficient permissions. Simply I wondering, why I'one thousand forced to add Guards on each route. I thought that guard on 1st road should be ...

  • 4,989

How to rotate a card with css transform inside memory game

I'm building a memory game in Angular. I've attached the component'south logic, css and html below. I'm trying to get the cards to flip merely methods online don't piece of work. Any suggestions on how to pull this ...

  • 59

Highmap not displaying map with angular-highcharts in Angular5

I am using this angular-highcharts module [https://github.com/cebor/angular-highcharts/] in my project and added lawmaking to display map(India) with post-obit code In app.module.ts import { ...

  • 415

How to navigate to parent route (or clear router-outlet)? Angular 5

Let's say that my view looks like that: localhost/main <h1>Angular Router</h1> <nav> <a routerLink="/crisis-centre" routerLinkActive="active">Crisis Centre</a> ...

  • 4,989

Hammer.js for Angular ii+

I use hammer.js in my applications (Angular 2 and 5). I use events from this library, as example - tap. If I destroy whatsoever DOM-element with the help of *ngIf, there's subscription on the issue. Every bit a ...

  • 23

Angular v HTTP Go request Parameters - Send multiple objects

I am trying to brand an HTTP go request with an object every bit param. It'southward this possible? I already tried information technology multiple ways just without success. Information technology works if I send only strings, non the entire class consign ...

  • 1,055

Not able to Publish the ASP.Net app in Visual studio

I am trying to publish the app from Visual-Studio but I am getting the fault: The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with lawmaking one. beginning azure app C:...\...

  • 51

angular5: Type 'true' is not assignable to type 'Observable<boolean>

I am trying to modify the login status after the user login component.ts isLoggedIn$: Observable<boolean>; constructor (individual auth:Auth){} ngOnInit (){ this.isLoggedIn$ = this....

  • 4,793

Linting with standard.js in Intellij Idea

I'1000 trying to use standard.js for linting in Intellij. I followed the instructions for installing the node module and the Webstorm directions for manually enabling linting since the IDE did not enable ...

  • 729

Cannot resolve @angular/http in node_modules\@angular\platform-server\bundles in athwart 5 aspnet prerendering

I am using Angular 5 with spatemplates in ASPNET Core. In one case I updated the packages and modified the webpack.config.js . I am trying to run -- webpack --config webpack.config.js to generate the main-...

  • 5,524

One-time prototype are not accessing from assets binder in athwart 5

I am edifice a angular 5 application .. I have bind src in component.html like this <img id='img-upload' [(src)] = "imgesrc"/> and my component.ts await like this ngOnInit() { ...

  • 131

HttpClient post body param is not sent correctly when using 'application/x-world wide web-form-urlencoded' content type request header

I am posting request using httpClient like: I have imported HttpClientModule in app.module.js for http become and post request. const httpOptionsWithCookie = { headers: new HttpHeaders({ 'Content-...

  • 175

angular-calendar not rendering events when comming from database

I'm using Angular v and mattlewis92/angular-calendar. when events are defined manually in code i have no issue. However when i query my database and try to bind the effect to the calender, there seem ...

  • 221

Angular 5 - Component selector tag with backdrop to dispense HTML elements

I would like to ask you, how tin can I achieve this: I take a component (lets name it FeatureComponent) with some box and inside this box three buttons. In another component (MainComponent) I'm using my ...

  • xiii

How can i set a simple cord value returned from http.post to a variable in Angular5

I desire to take a token from my Restful webservice with http.post. The webservice takes an username and password, if parameters match with any user in database it creates a token and render it every bit a ...

  • 35

mat-grade-field equally simply child in component

I have an error I deceit empathise. I have a component quite simple myComponent.html: <mat-form-field class="full-width"> <mat-select [(ngModel)]="value" course="uppercase" ...

  • three,110

angular 5 routing with custom blueprint

I develop a spider web application based on angular 5 that has well-nigh 100 legacy routes. All of them start with /home. due east.g. /home/fiscal-category-100 /abode/cyberbanking-204 /home/508-accountant /home/jobs-in-...

  • ii,793

Currently angular 5 is giving me dissimilar problems in firefox and chrome

I've been trying to resolve since few days but still I'm getting errors. Updated angular cli, nodejs to latest but still getting following errors. And once more I'yard confused with errors that is different ...

NgbDropdown in Navbar westward/ routerLink does not redirect

I've been trying to create a navbar in which the main link (the dropdown header) takes me to a page, and then using a dropdown-divide with a listing of anchors that can redirect to other business-related ...

  • 486

Angular5 WebApi token say-so non working

I'g trying to implement token authorization for Angular5 client and WebApi server application. I take managed to create WebApi part of the projection in question and when I try to become the token via "...

  • ane,271

Change leafletLayers after a dragend issue

I need to delete all the leafletLayers and add together others after a 'dragend' event. And so, i proceeded as below : mapParent.component template: '<app-map [leafLetmarkers]="markers" (refreshMap)="refresh($...

  • 514

Angular v FormArray go data from database and show rows

I am just a newbie to athwart. I have create a event component where user enters the event name with packages. When user creates an outcome it has the functionality for creating multiple packages with ...

  • 12.1k

Athwart 5 - End to End testing with ngModel

in concluding week we are trying to add e2e testing to our project, but information technology seems (after a big inquiry in the web) at that place is no library that tin work with Angular ngModel (version two+). what can we practise ? is ...

  • 105

405 Method non allowed on express angular 5 app deployed using azure web app

I deployed my athwart + nodejs app using azure spider web app but i go 405 method not allowed error while trying to access my node api server.js static assets code /*API routes*/ const api = require("./...

  • 737

AuthGuard: OnAuthStateChanged VS bank check token in Angular five + Firebase

Everytime an user signup, the following code is excetue: this.router.navigate(['/']); firebase.auth().currentUser.getToken() .then( (token: string) => this.token = token ) getToken ...

  • 2,077

Angular 5.0.0 HttpClient doesn't send Headers on Postal service

When I send a Get with HttpClient, server receives the Authorization Header. But when I send the aforementioned request using POST, Athwart doesn't send the Dominance Header. permit cabecalho1 = new ...

  • 61

Cipher visible inside ngFor

I am trying to pull data from Firebase and display information technology on my folio but everything nested within my ngFor is non showing, any ideas why? My page currently looks like this merely I want the data within the ...

  • 735

Why must an Angular component clone an object returned by a service?

I'm going through the HttpClient page in the Athwart Fundamentals department, and I was wondering why the component must clone the object received from the service that makes the HTTP calls? The ...

  • 1,639

button alter color after click - focus not working adept

I want to make buttons in the navigation panel which, later on selecting the folio, will take on a different color and If i click next page return to former colour. I use material designs from angulara. I am ...

  • 182

ngx-bootstrap AlertModule Issue

It was working nicely when i used "angular4" and "ngx-bootstrap 1.9.three". i have updated project to angular v.. Seems simply Alert is not working. If i remove alarm element from html template it will be ...

  • 155

Angular 5 ng2-loading-bar does not work correctly on firefox

I used @ng2-loading-bar in my projection. "devDependencies": { . . "ng2-loading-bar": "0.0.vi", . . } It works on Chrome, but it doesn't work on Firefox correctly. The progress bar ...

  • 2,793

Angular v w/Angular Material - Extracting an object property from ngFor to utilize in component

<div *ngFor="let player of players"> <h4 mat-line>{{histrion.firstName}} {{player.lastName}} - {{histrion.id}}</h4> </div> I'yard doing a HTTP get call from my player....

  • 23

Maintain generated token for service on injection

I am creating a service to generate a random token and laissez passer information technology to a asking (In developers Spotify they strongly recommend you to do so). In that location is a query parameter (state)! This is my Service: ...

  • 5,299

How to fix this error? Why I am getting this error?

my `package.json` file is { "name": "lg-app", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "get-go": "ng serve", "build": "ng ...

  • 759

leaflet legend how to gear up styles css in div from typescript lawmaking

I endeavor to set a legend on my map. I do not know how to set css styles, the values (grades) are displayed. Where should I put styles? Its angular 5 and typescript. Getting color from grades its non ...

  • 182

Angular 4/5, pass a class reference as an @Input holding?

I'thousand trying to figure out how to passing a class reference using an Input belongings, then that I tin create an instance of the class myself: <my-component classToCreate="{{ClassReferenceHere}}"> &...

  • 517

using directive to join two input value

I would similar to "autofill" an input depending on other form values. "id" should be "name" + "." + "combo": <input matInput name="id" required placeholder="ID" #idValue readonly/> <input ...

  • 3,110

Angular v Shared module, shared modules want to use pipes

I have i sharedmodule which exports differnt modules, components and pipes to the rest of the modules in the awarding. This works quite well, Merely(!!!) I accept the problem I can't go my caput ...

  • 494

Kendo Angular Grid Effect while installing using npm

I'g willing to use kendo-athwart-grid for my Angular five.two application. According to the changelogs of Kendo, the latest version of information technology is 2.0.0. But when I'thousand installing the parcel using the control npm ...

  • 377

How can I put my Extjs 4.2.ten project inside latest Angular App

I have a large app congenital in Ext4.2.x. At present the requirement is to practice further development in Angular. I am trying to create a wrapper of Angular effectually Ext app so that we tin can use angular for farther ...

  • 70

Angular 5 - Routing test failed with Jasmine when try to navigate to a specific route

I work with Angular 5, and I'thou testing an angular service with Jasmine & Karma. I have an authentication service with functions including a function that can redirect to the login page. I call information technology ...

  • 821

angular 5 modify header buttons in diffrent condition

Hullo im working on api and angular v for client side I need to alter navbar buttons . when user is logged in (signin and register may alter to logout button) ... i saved a key like logged in local ...

  • 413

How practise I retrieve only adjacent iii videos on each Youtube API call?

This is the API call which I was using to go the list of maxresults. var finalURL = "https://www.googleapis.com/youtube/v3/search?key="+this.API+"&channelId="+this.channelID+"&part=snippet,...

  • 325

Reactive Form design Validation and form array validation?

For reactive form validations i observed many tutorials and plunker links simply i am non getting any site which solves my trouble problem 1: formgroup pattern is [aA-zZ0-9'-]$/)](allow no, characters,...

  • 332

Angular v multiple events non calling

I am trying to build sample app in angular5. Lawmaking sample is as beneath. Effect is after clicking on whatsoever table row, it is firing only textbox blur event and tabular array row click effect is not fired. My ...

  • 253

MathJax not working in Angular5 Div with observable

How can I make information technology so the elements nested within my div can be contradistinct past MathJax to convert from TeX to HTML. Currently I take this app.component.html: <p> When \(a \ne\) It works baby ...

  • 735

How to prevent Heroku Logs show onetime logs?

I'g not sure why I lead my heroku logs command to this state. Information technology kept showing sometime logs. I tried to fix information technology by attempting these : heroku drains heroku logs I nonetheless see app[api]: Release v1 created ...

  • 47.8k

Role of the DOM continuously getting refreshed in Angular 5. While trying to fetch videos from YouTube API

Calling Youtube API in ngOnInit(){ var finalURL = "https://www.googleapis.com/youtube/v3/search?key="+this.api+"&channelId="+this.chanId+"&part=snippet,id&order=date&maxResults="+...

  • 325

johnsondeds1949.blogspot.com

Source: https://stackoverflow.com/questions/tagged/angular5?page=50&sort=Votes&pageSize=50

0 Response to "Jasmine.createspyobj "Cannot Read Property 'template' of Undefined""

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel