Unable to scroll when utilizing ng-html-bind functionality

My device specifications:

$ ionic info

Your system details:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:  
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Distributor ID: LinuxMint Description:  Linux Mint 17.1 Rebecca 
Node Version: v0.12.2

dailyDevotion.html:

<ion-view title="Daily Devotion" id="page2" class=" ">
    <ion-content padding="true" class="has-header"></ion-content>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <div class="list card " ng-repeat="devotion in devotions" >
            <ion-item class="item" >
                <h2>Daily Mass Reading</h2>
            </ion-item>
            <div class="item item-body">
                <p>
                    <div ng-bind-html="devotion.content" style="margin-top:0px;color:#000000;"></div>
                    {{ devotion.content }}
                </p>
            </div>

            <ion-item class="item-icon-left assertive  " >
                <i class="icon ion-music-note"></i>Share</ion-item>
        </div>
<!--         <h2>Daily Mass Reading</h2>

       <div ng-repeat="devotion in devotions">
          <div ng-bind-html="devotion.content" style="margin-top:0px;color:#000000;"></div>
       </div> -->
</ion-view>

controller.js

.controller('dailyDevotionCtrl', function($scope, $ionicLoading, InfoService, DevotionService) {
    // show ionic loader
    $ionicLoading.show({template: "Loading Daily Devotions..."});

    DevotionService.getAllItems().then(function (response) {

        if (response == 'loading error') {
            $scope.loadError = true;
            $ionicLoading.hide();
        } else {
            $scope.loadError = false;
            $scope.devotions = response;
            $ionicLoading.hide();
        }
    });

})

services.js

.service('DevotionService', ['$http', '$sce', function($http, $sce){

    var devotions =  [];
    var output = [];
    var BASE_URL = 'http://rss2json.com/api.json?rss_url=http%3A%2F%2Funiversalis.com%2Fatommass1.xml';

    return {
        getAllItems: function() {

            return $http.get(BASE_URL).then(function(response) {
                devotions = response.data.items;
                output = devotions;
                return output;
            }, function (error) {
                console.error(error);
                return 'loading error';
            });
        }
    }
}])

I am currently working on an application where I need to fetch data from a remote source via JSON. The content contains HTML markup tags which require proper formatting using the ng-html-bind directive. However, upon rendering the information, I encounter an issue where the page seems unscrollable. Even when attempting to bind the data without the ng-html-bind directive, scrolling remains disabled. Requesting assistance for this problem.

Answer №1

To address the issue, implement overflow-scroll:auto within the specified <div>. This suggestion was provided by @gianlucatursi in the comment section.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Hide a parent div in jQuery depending on the checkbox status

I have a code snippet that I need help with. You can view the code here. $("#filters :checkbox").change(function() { $(".listing-details > div").hide(); $("#filters :checkbox:checked").each(function() { $(".listing-details ." + $(this). ...

sequencing the compilation of Node.js modules

I am facing an issue with my node application involving multiple interdependent modules exported using module.exports. These modules include mongohelper, transaction, server, conhandlr, and appmin. Compile order- mongohelper transaction server (..the ...

Sending variables to other parts of the application within stateless functional components

My main component is Productos and I also have a child component called EditarProductos. My goal is to pass the producto.id value from Productos to EditarProductos. Here is my Productos component code: import {Button, TableHead, TableRow, TableCell, Tabl ...

Achieving a centered layout for a div containing two photos that overlap on a mobile screen resolution

I attempted to center a div containing 2 photos perfectly in the center, but encountered some issues. Despite trying various positioning techniques such as display: flex, align-items, justify-content, and more, I couldn't get the image container to mo ...

From creating a simple jQuery fiddle, let's delve into the world

Here is a code snippet I'm trying to transition from jQuery to an Angular directive. Visit this link to view the original code: http://jsfiddle.net/rhtr1w04/ Below is my implementation in app.js: angular.module('app',[]).directive('an ...

Deactivate the linear x axis labels in jQChart

I have a jQchart Linear chart that is displaying correctly and functioning properly. I am looking to remove or disable the X axis labels from the chart. ...

Ways to tally elements that have been dynamically loaded onto the webpage through AJAX requests

My page has a dynamic region that is continuously updated using jQuery's .ajax and .load methods. In order to submit the form, there need to be at least 3 of these 'regions', so I have to keep track of the number of DIVs with a specific cla ...

Adding schemas to the router of a Next.js 13 app is a helpful feature that can

Summary: In Next.js 13, the /app router's new changes to layout and page routing have altered how we add content to the <head>. The challenge now is how to include a schema script on each page. Next.js automatically combines <head> tags f ...

Submitting a jQuery Userlike form will not result in a page change

I'm facing a challenge with posting a form without the page refreshing. Despite various suggestions on SO, none of the methods seem to work for my specific case. The use of jQuery's ajax or post APIs is not an option as they change the encoding ...

AngularJS: Refresh array following the addition of a new item

After saving an object, I am looking to update an array by replacing the conventional push method with a custom function. However, my attempts have not been successful so far. Are there any suggestions on how to rectify this issue? app.controller("produ ...

GSAP also brings scale transformations to life through its animation capabilities

I have an SVG graphic and I'm looking to make four elements appear in place. I've been using GSAP, but the elements seem to be flying into place rather than scaling up. Here's the code snippet I've been using: gsap.fromTo( ...

Issue encountered in NestJS/TypeORM: Unable to modify the property metadata of #<Repository> as it only has a getter method

When attempting to launch my nestjstutorial app, I encountered the following error message. The backend is connected to a PostgreSQL database. TypeError: Cannot set property metadata of # which has only a getter at EntityManager.getCustomRepository (D:&b ...

Tips for formatting a lengthy SQL query in a Node.js application

Currently, I am facing a challenge with a massive MySQL select query in my node.js application. This query spans over 100 lines and utilizes backticks ` for its fields, making me uncertain if ES6's multi-line string feature can be used. Are there any ...

What guidelines should be followed for utilizing jQuery's Ajax convenience methods and effectively managing errors?

Imagine a scenario where I am trying to mimic Gmail's interface using jQuery Ajax to incorporate periodic auto-saving and sending functionalities. Error handling is crucial, especially in cases of network errors or other issues. Instead of just being ...

Utilize the inherited background color for a linear-gradient effect

Here is the code snippet I am working with: <label className={classes.trigger} htmlFor={uniqueId} ref={labelRef} style={{ background: val, borderColor: val }} /> This is the corresponding CSS: .trigger { display: block; posit ...

A lone function making two separate calls using AJAX

I have a function that includes two Ajax Get calls. Each call has a different function for handling success. function get_power_mgt_settings() { window.mv.do_ajax_call('GET',power_mgt.get_spin_down_url{},'xml',true,show ...

The use of conditional statements in AngularJS, such as if-else statements

Recently, I've been experimenting with some AngularJS code and encountered a minor challenge that I need assistance with. My goal is to allow users to choose from three different options. Below is the HTML snippet for this: <label class="item item ...

View the text notes information stored in a database, make changes to them, and then update and save the modified data using NodeJs

Currently developing a website that allows users to register, login, write text notes in a text area, save them in a database, and view those saved notes on a separate page. Additionally, users should be able to click on a note from the list and have it ...

Is there a quicker method to update the state of an array of objects?

Here is my React state example: const [questionList, setQuestionList] = useState([ { _type: "radio", answer: "", point: "", question: "", options: ["A", "B"], ...

Troubleshooting Timeout Problems with Selebiun Crawler in C#

I am encountering an error while running the following code. public void GetCategoriesSelenium() { string javascript = System.IO.File.ReadAllText(@"GetCategory.js"); CrawlerWebSeleniumJS.ExecuteScript("var finished;"); ...