All Questions
44 questions
1vote
2answers
60views
How to set @Url.Content for an image in AngularJs MVC Application
I am trying to upload an image and display it in my application. I am working in AngularJS, MVC and Web APi. My Image uploads successfully to a folder. Issue is: After uploading I send back relative ...
0votes
1answer
83views
How to pass value selected from drop-down list on child page to parent page editable text box?
One parent page I have an icon, clicking which a new modal window opens. In that window there's a drop-down list and the value selected from the drop-down should appear in the parent page text-box. ...
0votes
0answers
54views
Cannot get values from FormData - angularJS
This may be somewhere similar to a lot of questions but I can't find a working solution in them. Which made me ask this question. So I've a razor file and angular file as :- angular.module('App')....
1vote
1answer
2kviews
@scope value attached to button control not updating? MVC AngularJs
I have a default value for $scope.buttonId = 0 which I am using in button ng-click function like, <button type="button" class="btn green" ng-click="vm.Update({{buttonId}})"> {{ 'Save' | ...
0votes
1answer
460views
How to send json object to razor model then angularjs
This is the way I was sending my model to an angular controller scope. c# Controller: public class AreaMenuController : RootController { // GET: Menu public PartialViewResult Index() { ...
1vote
1answer
83views
How to replace url part before #
My angularJs App URL is opened via another application. URL to open my app looks like, http://localhost:21770/App/IAnalytics?FromApp=abc#/PBIDefault where FromApp is the parameter which indicates ...
0votes
1answer
65views
Angular routing and .net: ng-view not displaying
I'm trying to learn how to combine angular routing with MVC routing, but no matter what I try ng-view will not be loaded onto the DOM; instead when inspecting on the browser I see that ng-view has ...
0votes
1answer
227views
On key up event list show up in angular js
<body> <div ng-app="mvcapp" ng-controller="AngularController"> <input type="text" class="myInput form-control" name="txtStorename" id="txtStorename" placeholder="...
4votes
2answers
1kviews
MVC Enum list bind in dropdown using angular JS
I have an MVC Enum List that I want to bind in a dropdown using angular method. How could it possible? public enum DefultBookType : byte { Not Direct= 0, Individual = 1 } public ActionResult ...
0votes
1answer
88views
Asp MVC angularjs nested ng-repeat on a view using viewmodel
I have some code that works. public class testViewModel { public int Id {get;set;} public string TestName {get;set;} public List<string> SecurityName {get;set;} } I my view I have the ...
3votes
1answer
272views
Why AngularJS prints double quotation in HTML
With AngularJs, I am trying to display currency exchange with image. Here is my Razor code below. <span ng-controller="CurrencyController"> <span ng-bind="currencies"></span> &...
-2votes
2answers
446views
Areas Routing in MVC 4 with angularjs
Let me define my setup here. I have some areas like 1. AreaA 2. AreaB 3. AreaC and 4. AreaGeneral. in AreaGeneral I have one controller as home and GetData(paras) and it returns some data either in ...
2votes
1answer
2kviews
Angular js National identity card Number Validation
I created directive for validate nic no as follows CustomerCompanyApp.directive('nicOnly', function () { return { restrict: "A", require: 'ngModel', link: function (scope, ...
0votes
2answers
1kviews
Unmask Password to plain text and again mask it upon clicking a checkbox
I have a password type input element in html5 as follows in my angular mvc based app. I am having a requirement to have a checkbox near to this, and when the user clicks on the chekcbox, we display ...
2votes
1answer
580views
Angular UI-Router templateUrls in state - .HTML or .CSHTML?
I'm wondering which way is better to keep the partial HTML's in Angular UI-Router ($stateProvider) in app which is built in ASP.NET MVC This approach (corresponds to RAZOR view from MVC) .state('...