Category: asp.net-mvc

How to Get data of 4 dropdownlists from server in 1 request? [on hold]

I have a registration page where there are 4 drop down lists and i want to bind them all from database. I just want when the page loads, i can get the data of all 4 dropdownlists in just 1 request from server. I am using angular1 version and entity framework with mvc. Can somebody suggest better solution ? Source: AngularJS

Retrieve Selected Option Value From HTML DropDownList

I’ve a DropDownList where user has to select options and save it to database. I am using the following with AngularJs: <select> <option>—-Please Select Sub-Category—-</option> <option ng-repeat=”m in Categories” value=”{{ m.CategoryId }}” ng-model=”saveProducts.CategoryId”>{{ m.Category }}</option> </select> I can show the values in the above DropDownList but stuck to retrieve the value from the selected and pass it to the scope. I’ve tried even this, a silly one: <select> <option>—-Please Select Sub-Category—-</option> <option ng-repeat=”m in Categories” […]

why providerRoute is not working

var app = angular.module(‘MyApp’, [‘ngRoute’]); app.config(function ($routeProvider) {$routeProvider .when(“/Home”, { templateUrl: “Home/EmployeeList”, controller: “listController”, }) .when(“/Home1”, { templateUrl: “Home/EmployeeTable”, controller: “tableController”, }) .otherwise({ redirectTo: “/Home/Index” }) .controller(“listController”, function ($scope) {$scope.message = “In list controller”; }) }); why on running code TypeError:routeProvider.when(…).when(…).otherwise(…).controller error shows in cosole. Source: AngularJS

Gets Data in Json Format From AngularJs Controller

I am having a hard time with AngularJs. It works accordingly in some cases for me and when I try to change the template of the project, it doesn’t work anymore. Here is the scenario – I have a controller in ASP.NET MVC that returns the list of products in Json format and finally I call this controller using AngularJs controller as follows: C#: public JsonResult GetProducts() { var result = (from c in db.Products […]

AngularJS is not a function error

I am trying to implement a payment system in my e-commerce web application where I need installment options to be chosen by the client. I use angularjs to get that information but I get the error that all the provided functions below are not functions. I can provide additional information, but here is part related with the issue: $scope.tekcekim() = function () {$scope.strInstallmentCount = “”; }; $scope.taksit2() = function () {$scope.strInstallmentCount = “2”; […]

I create project asp.mvc and add angularjs and add fabricjs https://codepen.io/michaeljcalkins/pen/Imupw Now i catch error in console: Error: [$injector:unpr] Unknown provider: FabricProvider <- Fabric <- ExampleCtrl My app.js: var app = angular.module(‘myApp’, [‘ngRoute’, ‘ngResource’]); angular.module(‘example’, [ ‘common.fabric’, ‘common.fabric.utilities’, ‘common.fabric.constants’ ]).controller(‘ExampleCtrl’, [‘$scope’, ‘Fabric’, ‘FabricConstants’, ‘Keypress’, function ($scope, Fabric, FabricConstants, Keypress) {$scope.fabric = {}; $scope.FabricConstants = FabricConstants; // // Creating Canvas Objects // ================================================================$scope.addShape = function (path) { $scope.fabric.addShape(‘http://fabricjs.com/assets/15.svg’); };$scope.addImage = function (image) { […]