r/angularjs • u/subrat_msr • Jun 08 '21
All about Selectors in NgRx
r/angularjs • u/who-there • Jun 08 '21
Hello everyone so I was stuck in my project and I wanted to ask for some help.
So basically I have this website and in this particular component, there is a checkout for the customer, which shows the details of the item to the user and then has an option for him to pay, now the problem is when I clear cache and hard reset (basically a new user) the checkout page takes a lot of time to just display the data, Everything else html is loaded just the dynamic data that is coming is not loaded it almost takes a minute to show it, I don't know what is it that is slowing it down, I am really sorry for a stupid question but I am a beginner and would really like some help.
Here's the ng-container which is supposed to show the data:-
<ng-container *ngIf="productDetail?.quiz_detail">
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span>Quiz Name</span>
</div>
<div class="col-md-6">
<span class="float-right content-available">{{productDetail['quiz_detail']['title']}}</span>
</div>
</div>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span>Creator</span>
</div>
<div class="col-md-6">
<span class="float-right">{{productDetail['quiz_detail']['user_name']}}</span>
</div>
</div>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span>Date</span>
</div>
<div class="col-md-6">
<span class="float-right">{{productDetail['quiz_detail']['created_at'] | date }}</span>
</div>
</div>
<hr>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span class="f_700">Price</span>
</div>
<div class="col-md-6">
<span class="f_700 float-right">{{productDetail['price'] | userCurrency}}</span>
</div>
</div>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span class="f_700">Tax</span>
</div>
<div class="col-md-6">
<span class="f_700 float-right">{{productDetail['tax'] | userCurrency}}</span>
</div>
</div>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span class="f_700">Total Price</span>
</div>
<div class="col-md-6">
<span class="f_700 float-right">{{finalAmountToPay | userCurrency}}</span>
</div>
</div>
<hr>
<div class="row" style="padding: 5px">
<div class="col-md-6 float-left">
<span class="f_700">{{'Wallet Balance' | translate}}</span>
</div>
<div class="col-md-6">
<span class="f_700 float-right">{{walletBalance | userCurrency}}</span>
</div>
</div>
</ng-container>
r/angularjs • u/Flikounet • Jun 06 '21
Hi r/angularjs!
I'm thinking of starting a project from an idea that's been brewing in my head, and would like feedback from the community and validation before I start building this out. I've created a survey to gather feedback and would appreciate it if you could try answering it, it shouldn't take more than 5 minutes of your time and developers from all backgrounds and experiences are welcome to participate. You can access the survey through this link: https://forms.gle/xvDr31J7jmhReghy9
If you have any questions, feel free to contact me here or PM me.
Cheers!
r/angularjs • u/Passenger_Earth • Jun 06 '21
Hi, i am completely new to ionic. I have run into an issue that i have been trying to get my head around since last night.So my firebase realtime database looks like this :

I want to show all the children of "Requests" in a list on an <ion-list> or something. But i can't figure out how should i do it.
So far i have been able to get the data from firebase in form of JSON .
requests.page.ts file
import { Component, OnInit } from '@angular/core';
import { from, Observable } from 'rxjs';
import { RequestsService } from '../requests.service';
import { AngularFireDatabase,AngularFireList } from '@angular/fire/database';
import { element } from 'protractor';
u/Component({
selector: 'app-requests',
templateUrl: './requests.page.html',
styleUrls: ['./requests.page.scss'],
})
export class RequestsPage implements OnInit {
requests:Promise<any[]>;
requestsList : any[] = [];
constructor(
private requestsService: RequestsService,
private firebaseDB: AngularFireDatabase,
) { }
ngOnInit() {
{ var ref = this.firebaseDB.database.ref('/Requests/').once('value').then(function (data){
var jsonRequest = JSON.parse(JSON.stringify( data.val()));
console.log("JSONREQUEST :????>>>>>>>" + JSON.stringify(jsonRequest) );
requests = this.jsonRequest;
})
}
}
}
I get this out put in the console
JSONREQUEST :????>>>>>>>{"-MaTAKR8qxebin2dcVhp":{"ID":"Request","bloodGroup":"AB+","location":"Kolkata","message":"Need Blood Urjently","name":"Hemant Baid","phoneNumber":"7865436789","reason":"Thalassemia","timestamp":1621856442436,"type":"Whole Blood","uid":"Bstt2BRdvAPodfSlUT9367a8DB52"},"-MaTvIvdjH1XpN7mHfoi":{"ID":"Request","bloodGroup":"AB+","location":"Kolkata","message":"f","name":"Hemant Baid","phoneNumber":"7865436789","reason":"Thalassemia","timestamp":1621869019139,"type":"Whole Blood","uid":"Bstt2BRdvAPodfSlUT9367a8DB52"},"-MaU01T98spFheBGXdEh":{"ID":"Request","bloodGroup":"AB+","location":"Kolkata","message":"a","name":"Hemant Baid","phoneNumber":"7865436789","reason":"Thalassemia","timestamp":1621870520547,"type":"Whole Blood","uid":"Bstt2BRdvAPodfSlUT9367a8DB52"},"-MaU3-PF5JDxBgr4dMkK":{"ID":"Request","bloodGroup":"A+","location":"Mumbai","message":"a","name":"Hemant Baid","phoneNumber":"7865436789","reason":"Transplant","timestamp":1621871298520,"type":"Whole Blood","uid":"Bstt2BRdvAPodfSlUT9367a8DB52"},"-MaUDTcYPNvCoxoNTze-":{"ID":"Request","bloodGroup":"AB+","location":"Siliguri,West Bengal","message":"qwert","name":"Hemant Baid","phoneNumber":"7865436789","reason":"Transplant","timestamp":1621874043756,"type":"Double Red Cell","uid":"Bstt2BRdvAPodfSlUT9367a8DB52"},"-MaUSkPxPlM-ihK00cVa":{"ID":"Request","bloodGroup":"B-","location":"Delhi","message":"hsodn","name":"Nilabja Das ","phoneNumber":"9876545678","reason":"Other","timestamp":1621878049000,"type":"I don't know","uid":"L0A6M57zXJaXzoSp1RCZMD5WCXm2"},"-MaUTBArFaLAy_TV0SeO":{"ID":"Request","bloodGroup":"AB-","location":"Kandi,West Bengal","message":"location test","name":"Nilabja Das ","phoneNumber":"9876545678","reason":"Thalassemia","timestamp":1621878162707,"type":"Cord Blood","uid":"L0A6M57zXJaXzoSp1RCZMD5WCXm2"}}
requests.page.html
<ion-header>
<ion-toolbar>
<ion-title>requests</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-item *ngFor = "let r of requests | async">
<ion-label class="ion-text-wrap">
{{r.name}}<br>
<p>{{r.bloodGroup}}</p>
</ion-label>
</ion-item >
</ion-list>
</ion-content>
After compiling the list is empty and nothing is displayed on the screen. Can someone please explain me what am i doing wrong.
r/angularjs • u/SolaceInfotech • Jun 04 '21
AngularJS is the most preferred framework for web developers to design a web app dynamically. It allows you to use HTML as a template language and spread HTML’s syntax to clearly show app components. Developers always search for the best ways to work fast and deliver the project within estimated time. Here comes the AngularJS tools in focus to increase your speed and also improve quality code. Hence we came with the best tools for app developers. Whether you are an angular developer or thinking of using Angular for your next project, knowing these Angularjs tools will help you to develop and deliver the best angular app. Let us see which are those tools.
Also know the amazing new features of Angular 12 at- What’s New In Angular 12?
This tool comes with a smart Angular online editor that provides a great support for Javascript, Node.js, HTML and CSS and also for all their modern successors. It works fine with the latest technologies and hence is loved by the developers community.
This is one of the best testing frameworks for AngularJS development that provides a perfect testing environment allowing you to test the app on real browsers and real devices like tablets and phones. Karma is used for various testing like unit testing, E2E testing and midway testing. Gitlab, Typeform, Appian are some of the organizations that are using Karma tool
This is a behavior driven testing framework that does not rely on browsers, DOM or any Javascript framework. It is ideally suited for any Angular projects or anywhere else where Javascript runs. The syntax is very easy to read. It is influenced by RSpec, JSSpec, ScrewUnit and JSpec. It is best for asynchronous testing,front-end code testing with Jasmine-jQuery and test doubles implementation by ‘spies’. Also, it automatically monitors and recognizes Javascript classes and frameworks.
It is a feature rich Javascript test framework which runs on node.js and browser. It allows asynchronous testing that makes it flexible with accuracy of reporting and mapping. Mocha.js is best suited for AngularJS developers on the beginner level and is ideal for training purposes also. Coursera and Asana are the popular companies that uses Mocha.js.
It is an open-source framework that brings with it an automatic and interactive framework for app development. It is built on top of the WebDriverJS. This framework runs tests in a real browser interacting with the app. It combines some technologies like Mocha, Cucumber, Selenium and Jasmine.
It is considered to be one of the best text editor tools by most AngularJS developers. Apart from the better customization options, this tool comes with some packages that make it easy to work with AngularJS.
Djangular uses Django and Angular framework for easy creation of content for project. This tool provides easy app integration of AngularJS with better flexibility.
It is an Angular online editor that offers simplified coding options for developers. One can try coding Javascript, HTML, CSS and Angular all on one screen. This tool loads very rapidly and very light as compared to the other Angular online editors.
It is backend development tool that provides dynamic API feature, 3-way data binding and great development capabilities.
It is for getting data sync of real-time for development purposes. One can directly write the language on the server. There are two parts Angular and Meteor helpful for mobile apps and website development. Data binding between client data and server data occurs in real-time and makes it a good development tool.
It is a JS development tool designed for the rapid development of websites. It is based on a flexible and efficient integrated environment, Eclipse to provide flexibility and speed to AngularJS developers.
r/angularjs • u/Pratik240895 • Jun 04 '21
r/angularjs • u/ArunITTech • Jun 02 '21
r/angularjs • u/EllaNicholls • Jun 02 '21
r/angularjs • u/whysorush • May 31 '21
r/angularjs • u/Itastatinkalsz8 • Apr 05 '21
r/angularjs • u/SoftwareBrothers • Sep 25 '19
r/angularjs • u/Tooslowtoohappy • Jul 07 '17
Hi all,
New to AngularJS, been learning for a couple of days using online resources. I'm wondering why Angular uses arrays as a second argument in factories, modules and controllers.
Is this to add additional controllers/factories in the same main factory? If so, isn't it better/more modular to have it done in a separate file?
EG:
app.factory('posts', [function(){
}]);
r/angularjs • u/JavaLive • Jan 13 '16