Search Posts

Category: meanjs

Dynamic Column css Based On Window Size AngularJs

This may be answered somewhere, but I am unsure of exact terminology as I am new to web development. I am working with a mean.js app and I have a a container that I am filling: <div class=”container-fluid”> <div class=”col-sm-4 col-md-6 col-lg-4″> <div class=”panel” ng-repeat=’item in itemList’> {{item.content}} </div> </div> </div> But I don’t actually want the col sizes to be as specified there. I would like to set the panel sizes to a set […]

How to filter ng-repeat values based on another input ng-model value in angularjs?

repeat values based on another input ng-model value in angularjs? I have one input value like Social Psychology for this value ng-model is kpcategory I have used ng-repeat like ng-repeat=”question in questions to list out the all category and name. I tried to filter Social Psychology category in ng-repeat list, so i used like ng-repeat=”question in questions | filter:kpcategory”. what the issue is, it’s filtering Social Psychology data’s perfectly. but i would like to filter […]

How to show only time of date in AngularJS?

Hi All How to show only time value in angular js? My Plunker I have fetched time value using of ng-repeat, and I just want to show only time value in my portal. I were tried to fetch time value like <p>3. TIME</p><span><h4>{{user.time | date:’medium’}}</h4></span> For example:- Instead of Jan 1, 1970 10:00:00 PM i want to show only the time 10:00:00 PM How to do this please help us thanks. My Html:- <div ng-repeat=”user […]

MEAN-stack app: REST API calls from angular2 frontend to express backend do not work. Error: ERR_CONNECTION_REFUSED

I am building a MEAN stack app, following this tutorial: https://www.youtube.com/watch?v=PFP0oXNNveg&t=3236s The Problem: I try to do http.get() request from my angular2 frontend to my express backend. It does not work and i get the Error: ERR_CONNECTION_REFUSED: The Error My frontend is on localhost/4200 and my backend on localhost/3000. I figured the problem might be that, so i search for solutions and tried everything described in here: Angular-CLI proxy to backend doesn't work (solution to […]

How to Get the value like First drop down value related to Another drop down value using of angular js?

How to get the value like first select drop down value related to another select drop down value using of angular js? Hi all I have created two drop down fields in MyPlunker and with in the ng-option I have used filter like | filter:flterWithKp because to get only the kp users. First drop down list are kp users categories and second drop down list is kp users. What I am looking is if we […]

How to get unique drop down value instead of multiple in angular js?

How to get unique drop down value instead of multiple in angular js? Hi all I have created two drop down fields in MyPlunker and with in the ng-option I have used filter like filter:{roles: ‘kp’} because to get only the kp users. First drop down list are kp users categories and second drop down list is kp users. What I am looking is how to get unique category, for example:- in categories list there […]

How to get with in array values in ng-options using of angularjs?

Hi all I am trying to get the values as a drop down or select field which were with in the comments array. I am trying for comments array of commentText value in the drop down, how can i do this in the ng-option ?. My Plunker For Example:- I did the drop down ng-option for first without array value. Now i am looking for comments array value of[commentText”: “7A”] in the drop down how […]

How to solve moment not defined error in Angularjs?

all I want to filter the items like (Start and End Date) which are based on invoice_date using the date range functionality in meanjs app. My problem is the date filter function are working perfectly in plunker and my localHost production but while pushing to server it’s showing only up to May month data’s if some invoice_date values date is been `2017-08-24 and 2017-07-27′ these data is not displaying in table, I don’t know where […]