All Questions
Tagged with angularjs-directive ionic-framework
240 questions
0
votes
1
answer
354
views
Webpack Module Parse Failed: Unexpected Character '@' with Angular and Swiper
I'm currently working on an project in ionic (angular) and attempting to include Swiper (version 11.1.0) for sliding elements. However, I encounter the following compilation error:
./node_modules/...
2
votes
1
answer
5k
views
Why do Ionic Lifecycle hooks (ionViewWillEnter, ionViewWillLeave) not fire when used as HTML Selector?
I am working on an Angular Project, with Ionic 4.
When Child Page is called from Parent Page's HTML using HTML Selector, child page's Ionic Lifecycle Hooks do not fire.
Why is it so? How do I use ...
0
votes
2
answers
624
views
ngfor is displaying only the first row. It is not printing the entire rows
Template
<div>
<ion-list *ngFor="let log of logList|orderBy: order; let i=index">
<ion-item>
<p>Log entries: <b>{{log[i].sub}}</b></p>
...
1
vote
1
answer
331
views
How to fix problem with *ngFor in Ionic v3?
I have a problem with use *ngFor in Ionic v3.
<ion-list>
<ion-item-group [reorder]="reorder" (ionItemReorder)="recordTracks($event)">
<ion-item no-padding class="nomarg" *...
0
votes
2
answers
3k
views
Limit the input field to two decimals
I'm using Ionic/Angular for a hybrid app and in a form and I'm trying to limit the amount input field to max two decimals. However, the following code allows only to enter full numbers.
<ion-...
0
votes
2
answers
32
views
Why doesn't my directive recognize its parameters?
I'm reviewing old classes and I try to finish the exercices I couldn't do before. This class is in Ionic1, using Angular1.
I have a directive using two parameters; the first one is an object which ...
-1
votes
1
answer
297
views
why md-select-on-focus not working in ios?
I have an input box with the md-select-on-focus directive and it's working on the web. After converting it to an Ionic app, it does not work in iOS even though it works in Android.
I noticed that in ...
0
votes
1
answer
249
views
Creating dynamic input form in Ionic v1
I have an older project in Ionic v1 (Angular 1.x) where users can create groups and add members. I need to add a capability to the App for the group Admin to ask questions to group members - sort of a ...
0
votes
1
answer
126
views
Angularjs - Restrict user from typing while user tabs out to new field if API call in progress
My mobile (ionic) application makes an API call when user types in something to an input field and do an 'onblur' (focus out) operation.
If user tabs to next input field, or he/she just tap on ...
1
vote
0
answers
744
views
How can I set auto height on ion-scroll with ionic?
I would like to know how can I set an auto-height with ion-scroll, I created a template for my modals, here is it
<ion-modal-view>
<ion-content scroll="false">
<div class="...
0
votes
0
answers
154
views
Compile HTML string in AngularJS
So, a little background on this, I have an AngularJS/Ionic project that I'm attempting to do some improvement on, I'm placing all my HTML/JS/CSS into a database table, which in turn will be retrieved ...
0
votes
1
answer
207
views
how to alter text of ion-label
I have a Directive that should append a string to an ion-label element.
/**
* icon used everywhere to indicate this is a required form field
* usage: <ion-label required> blah </ion-label&...
0
votes
1
answer
985
views
AngularJS can't call controller method inside directive
I'm working on a hybrid Ionic1 app and I am not able to call a controller method from inside a directive.
The problem is that inside the directive I'm able to pass controller's variables (such as ...
0
votes
1
answer
32
views
Passing filtered list in custom directive angularjs
I have a list of objects, namedeventPlans, to show in a div with some filter. Now I want to pass that filtered list, named pendingEventPlans, in another directive actually in my search directive.
<...
1
vote
1
answer
166
views
Angularjs- How to see if a directive is active/in the dom or not?
I am writing an app with Ionic v1 and Angular v1.5.
I am using this 3rd party library in my project:
https://github.com/djett41/ionic-content-banner
It is directive-based. I have a problem in my ...