Tagged Questions
0
votes
1answer
29 views
How do display json data in view using Angular
I am learning Angularjs and trying to implement it in my C# web MVC application for the first time.
I am unable to get json format data returned from my controller to display in my view which uses ...
0
votes
1answer
21 views
Getting “c.instantiate {}” returned as object when referencing a service
I created a geo location service:
angular.module('App')
.service('Geo', ['$http', ($http) ->
apiUrl = 'http://freegeoip.net/json'
getData = ->
$http.get(apiUrl)
...
0
votes
0answers
70 views
Using Karma-runner with AngularJS, Jasmine, CoffeScript
My app besides jRuby/Rails uses AngularJS, CoffeScript. I'd like to test my javascript with Jasmine and run it with Karma (aka Testacular), but I get an error stating that my Angular module is nowhere ...
0
votes
1answer
79 views
Update Common AngularJS HTTP Headers at Runtime
How can I update the common HTTP headers at runtime from an AngularJS controller, e.g. $httpProvider.defaults.headers.common['Authorization']? It seems $httpProvider can only be accessed from a config ...
0
votes
1answer
41 views
Hide/show particular element on click with AngularJS
I have an HTML table with many rows in it and want to hide a row when the user clicks the delete button for that particular row. I'm having trouble doing it with Angular and the ng-hide directive.
...
2
votes
2answers
76 views
Why do I need to angular.bootstrap even when I declare ng-app=“MyApp” in JSFiddle
I do not truly understand why it is necessary to do an angular.bootsrap document, ['MyApp'] at the end of my CoffeeScript code that manages the module and controllers in the following test ...
1
vote
1answer
194 views
Angular JS + CoffeeScript + JSFiddle: Code not working
I started playing around with CoffeeScript and AngularJS today and noticed that there is not a whole lot of documentation or examples on how to correctly write AngularJS using CoffeeScript. My own ...
0
votes
1answer
59 views
AngularJS/Parse.com : $scope.currentUser variable not updated
I'm using parse with angularjs to authenticate users. Here is the login function.
$scope.doLogin = ->
Parse.User.logIn $scope.currentUser.username, $scope.currentUser.password,
...
0
votes
0answers
48 views
AngularJS $rootScope magic
Jade code:
This code connected via ng-include
.ui-drop-panel(drop-zone, drop-event="onDrop:pdf")
.ui-drop-content
// TODO add button and text
.ui-upload-panel
.progress
...
0
votes
0answers
19 views
SbtIdeaPlugin No mapping for js in custom build in Play 2
I'm getting the following exception when I run the "web" module of my project https://github.com/jeffmay/angular-play-multimodule-seed/commits?author=jeffmay and I don't understand why.
...
0
votes
0answers
75 views
How to save some state into the URL as a query parameter
I'm using AngularJS 1.0.7, with ui-bootstrap 1.0.4.
My application has a main navigation bar, and some pages have an extra level of tabs (using ui.bootstrap tabset and tab directives).
What I'm ...
1
vote
0answers
80 views
Unit Testing an AngularJS Controller With CoffeeScript and Karma
I'm new to the concept of unit testing, and I'm trying to setup a simple test. The platform that I'm working on requires that all JavaScript be first written in CoffeeScript. I've read many examples ...
1
vote
1answer
168 views
MultiBar chart with nvd3 / d3 only shows labels for every other tick on the x-axis. How can I get them all to show up?
Data:
nvd3TestData = [
{
values:[
{x:"M",y:1},
{x:"T",y:2},
{x:"W",y:3},
{x:"R",y:3},
{x:"F",y:4},
{x:"S",y:5},
...
2
votes
2answers
122 views
How to make directive re-render view in Angular?
I would like to truncate text dynamically, on each data change and each window's resize event.
Lets's say I have a HTML:
<p ng-truncate='lines: 2'> Lorem ipsum dolor...</p>
My ...
0
votes
1answer
64 views
Angular js ng-repeat and directives
I have a list of items that can be starred. The buttons to archive, delete and star pop up on hover. However, if the item is starred, the star does not fade out but remains visible.
I have created ...