Angular EventEmitter not found

TypeScript
I created a project by using Angular CLI, but when I try to use EventEmitter, it fails to compile with the error "Can't resolve '@angular/core/src/eve...
11 months ago

ng bootstrap 4 - typeahead open on focus

TypeScript
I use ng-bootstrap 4 (beta 8). At the moment i have this: <ng-template #rt let-r="result" let-t="term"> {{ r.label }} </ng-template> ...
11 months ago

Typescript server in VSCode incorrectly reports unused private variable

TypeScript
Why does typescript report that the variable is not used even though it is referenced inside _close() method? The weird thing is that if I remove the...
11 months ago

ASP.Net Core 2 - Using Url.Action to generate url to web api behaves differently?

TypeScript
I've used the helper Url.Action to pass relative URLs from MVC views to Typescript/Javascript classes before in full ASP.Net MVC with success. Here is...
11 months ago

How can make TypeScript in WebStorm to parse alias of webpack?

TypeScript
I using TypeScript (2.6.2) in WebStorm (2017.3) with webpack (2.6.1). I create some alias of webpack: //webpack.config.js resolve: { alias: { ...
11 months ago

Typescript Typings definition errors

TypeScript
I am currently having issues adding proper type definitions to my project. I am very new to typescript and am following the guidance of a book (called...
11 months ago

Can I write a Twig Extension to access previous and next element in a loop

Twig
I was wondering if there is a way to create functions (or whatever) in Twig, so I can access the next and the previous element in a for loop. Somethin...
11 months ago

Configure Identity Server 4 With Ionic 2

TypeScript
I'm trying to configure Identity Server to work with Ionic 2. I'm a bit confused on how to configure the Redirect urls. For when I'm testing in the b...
11 months ago

Vue.js can't set background-image in :style (twig template)

Twig
I'm using Vue.js at my Symfony 3.4 project. I have a problem with seting my background-image from object via Vue.js I'm looping through my elements ...
11 months ago

Firebase create model which has optional values in swift

Swift
I would like to create model which has optional values. I implemented flatmap to achieve that. node look like this and imageUrl does not exist everyti...
11 months ago

using ajax in a symfony project to delete item

Twig
hello I'm looking for a script that could allow me to delete item in a symfony project using ajax, I didn't find any solution for this I tried to dele...
11 months ago

typescript/eS5-ES6 module is not getting called

TypeScript
I don't know what's wrong as I'm new in Angular2,typescript,es5 and es6. Look at plnkr. I don't understand why my FirstComponent is not getting called...
11 months ago

How do I navigate forward and backward within UIPageViewController using buttons?

Swift
I'm creating an onboarding app for New Patients of a physical therapy clinic. The new patient will answer questions on each view controller within the...
11 months ago

Twig - Iterating over Form fields

Twig
I'm facing a problem trying to iterate over all form elements in a Twig form theme. Actually I used this to iterate over them: {% for child in form.p...
11 months ago

swift set image center pie chart

Swift
I am using a pie chart from iOS-Charts I want to add an image to the center of the chart instead of the pie chart. image What should I do? This i...
11 months ago

Ignore unknown tags in twig

Twig
I have a few set of templates written with Twig. I have then written a separate script to be run using the CLI. This script allows me to scan my templ...
11 months ago

How does addSubview work with intrinsicSizes?

Swift
The result of the following code is: I don't see the label. My understanding was that the intrinsicSize of the label would allow the label to stretch...
11 months ago

One form for multiple addresses in Symfony - Twig

Twig
First I want to make clear that I'm not using Entities/Doctrine for my forms (or even). I'm using webservices to add/edit the data fields for the data...
11 months ago

Swift generic data conversion function

Swift
I'd like to create a generic function to convert stored Data to different data types like: import UIKit import AVKit func represent<T>(_ data:...
11 months ago

Twig date loop each day in a period

Twig
So, here's my situation, I have a beginning date and an ending date, with Twig I want to be able to loop through all days in the so called period so t...
11 months ago

Remove class active onclick (angularjs)

Twig
I have an ul with up to 3 possible li's inside (meaning it can have 1, 2 or 3). All 3, when clicked, open a modal and get an class="active". My goal ...
11 months ago

Move Sprite Node While Rotating

Swift
I am attempting to move a sprite node (a frisbee) in Swift while rotating it. The object moves as expected, but does not rotate. I grouped the two act...
11 months ago

Symfony 3 using a macro in a macro?

Twig
i want to use a macro in a macro. But how is this working? macro in my twig: {% import _self as formSubmacros %} {% macro printSubcategoriesRo...
11 months ago

Unable to access form values in array with key-array subset

Twig
For a project I'm working on a company with addresses related to that company. I created a form for the company with it's physical address (this addre...
11 months ago

Swift protocol extensions with enums

Swift
So I have several enums representing various unit systems: enum MassUnit:Double{ case Pound = 453.59237, Ounce = 28.349523125, Gram = 1.0, Kilog...
11 months ago