r/angularjs • u/mgonto • Oct 02 '14
r/angularjs • u/corganfuzz • May 21 '16
HELP , AngularJS - Entity Framework app only shows ID's
Hello, I've been stuck in this problem for about 2 days,
I'm making an angular app that is using entity framework in the back end and angular in the front, the database created in visual studio 2015. I have 3 tables where my associative table has 2 foreign keys.
When I pull data from the main associative table I get the main values and the ID values of the other 2 tables. sorta like this. this is obvious because im telling it to do that.
| Sections Id | CodeNumber | Date | UserId | RankId |
|---|---|---|---|---|
| data | data | data | 1 | 6 |
| data | data | data | 2 | 4 |
| data | data | data |
So my questions is , how can I replace those ID values with Angular , Like I said, they are foreign key values. so data instead of numbers.
Thank you in advance
my app.js
var myApp = angular.module('myApp', []);
myApp.controller('maincontroller', function ($scope, $http) {
$http.get('/home/GetSections')
.success(function (result) {
$scope.sections = result;
})
.error(function (data) {
console.log(data);
});
});my index.cshtml
<h2>Sections</h2>
<div ng-controller="maincontroller">
<table class="table">
<tr>
<th>Sections Id </th>
<th>Code Number</th>
<th>Date </th>
<th>User Id </th>
<th>Rank Id </th>
</tr>
<tr ng-repeat="section in sections">
<td>{{section.SectionId}} </td>
<td>{{section.CodeNumber}} </td>
<td>{{section.Date.replace('/Date(','').replace(')/','') | date:"MM/dd/yyyy"}} </td>
<td>{{section.UserId}}</td>
<td>{{section.RankId}}</td>
</tr>
</table>
</div>My homecontroller.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace FireLab.Controllers
{
public class HomeController : Controller
{
// GET: Home
public ActionResult Index()
{
return View();
}
public JsonResult GetSections()
{
var db = new FireDBEntities();
var sections = db.Sections.ToList();
return Json(sections, JsonRequestBehavior.AllowGet);
}
}
}btw, I've tried different options like ng-options and filters , but they dont seem to work I get blank I if add them
r/angularjs • u/abhijit4457 • May 15 '15
ng-table-without-jquery
Attempting to make a module for AngularJS that handles table sorting/pagination without the use of any libraries outside of AngularJS. - See more at: http://ngmodules.com/
r/angularjs • u/krlkv • Feb 20 '16
Why you shouldn’t use Angular Material today
r/angularjs • u/abyx • Nov 07 '13
For frontend devs tired of slowing down because of server stuff
r/angularjs • u/PDFormat_SFW • Sep 20 '18
I literally have no idea what advantages Angular has over plain JS.
Everything, from conditionally showing elements, to just writing the business logic of my webapp, I fail to see what benefit this 40,000 line blob of code called Angular provides.
I'm not trying to be an A-hole about this: please tell me why Angular is actually a better option than plain JS. They're making me use Angular at my job and it's so cumbersome, and I've yet to think to myself as I work, "Glad Angular was here to make things easier/faster/more readable."
r/angularjs • u/thinkvitamin • Jan 21 '15
Ihateangular.com - (Non-)constructive Angular.JS hate
r/angularjs • u/adrian5b • Aug 29 '15
I just started learning angularjs on codecademy…
I just wanted to say: boy, what a time to be alive. This framework is just amazing.
r/angularjs • u/samsone00 • Sep 22 '21
React JS In 45 Seconds, Hello developers, I have started my own youtube channel, and this is my very first video, I would love some feedback, enjoy.
r/angularjs • u/ngmodules2015 • May 11 '15
angular-seed — the seed for AngularJS apps
This project is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.
The seed contains a sample AngularJS application and is preconfigured to install the Angular framework and a bunch of development and testing tools for instant web development gratification. The seed app doesn't do much, just shows how to wire two controllers and views together. See more at: http://ngmodules.com/
r/angularjs • u/satire • Aug 16 '14
[General] Opinionated Rundown of JS Frameworks - Whats the angularjs community's response?
blog.andyet.comr/angularjs • u/ukmsoft • Jul 31 '21
[Code] Learn Angular, JavaScript, CSS, Html from Scratch...
r/angularjs • u/janetparkervc • Dec 28 '17
Beginner’s guide on MEAN Stack – Introduction and benefits
r/angularjs • u/TechArticleNews • Nov 23 '18
[General] AngularJs vs React – What’s Better For App Developers?
r/angularjs • u/ganudavp • May 04 '18
Angular 6 (formerly Angular 2) - The Complete Guide
r/angularjs • u/sowam • Dec 10 '20
Job offers and developers
Hi!,
I found out that it is really hard to find a good discord server where I can find job offers or post an offer for developers... Because of that I decided to create a new discord server only for that. I would like to create a nice, friendly community to help each other finding new projects or developers to develop new incredible things! I would like to invite you there, here is a link https://disboard.org/server/785944707582656513 I am also looking for mods and people that would like to help me to grow it so please feel free to write to me and ask for joining our admins!
Kind regards
r/angularjs • u/InterwebCountyPress • Dec 11 '13
Angular would be great for super-responsive layouts except it doesn't work in IE
Edit: Solved! Thanks Evereal!
Here it is being used on site I'm working on (ignore the sluggish masonry, I'm working on it).
Look! Responsive images:
http://i.embed.ly/1/display/crop?height={{(1000 * window_width/ 2 * retina) | decimal}}&width={{(1000 * window_width* retina) | decimal}}&url={{topstory.image}}&key=jlakjflakjflakjfal;kja;lkja;lkjalkj('retina' = 2 if it's a retina display, 1 if it's not)
Pretty neat, huh? You can get a perfect layout on any screen right down to the last pixel. EXCEPT IT DOESN'T WORK IN IE.
I guess I'm hoping someone has a solution to the IE bug, because to me this is so much cooler than css media queries. I'm considering telling IE users to just fuck off.
r/angularjs • u/jomendez • Feb 16 '15
Example of use of parse in AngularJs Directive - Jose Mendez blog
r/angularjs • u/Harveyhdear • Jan 20 '22
Top Companies Website build on Famous Js Framework
r/angularjs • u/[deleted] • Nov 08 '20
I need a certification for Angular
I only found one on coursera but i don't know if it's worth it. All i need is a proof on my resume other than projects. Thank you
r/angularjs • u/stackchief • Mar 16 '18
