Angular Material Back to Top Button with example and demo

In this post we will show you Angular Material Back to Top Button with example and demo , hear for Angular Material Back to Top Button with example and demo we will give you demo and example for implement.

Angular Material “Back to Top Button” that magically appears on your page when you scroll down. If you already make use of angular and angular material, this is the component for you.

Hear is Git hub like for Download, Demo and for information(Read More), it will help you into development and implement for Angular Material Back to Top Button with example and demo . This link of git will give you document, instruction, installation and other information.




Read More Demo Download

Angular/Angular Material “Back to prime Button” that as if by magic seems on your page after you scroll down. If you already build use of angular and angular material, this is often the part for you.

How will Angular Material Back to Top Button work?

When the part notices a scroll on your page, a pleasing button can seem on the lowest right of you screen. If you click it, it’ll take the page to its prime.

Features for Angular Material Back to Top Button

  • Change the speed of the scroll -> amendment the gmspeed atribute to try to to thus (in miliseconds). The acceleration of the scroll follows the COS(pi) curve thus expect a straightforward in-out result.
  • Change the button’s layout ->

How do you use Angular Material Back to Top Button? Four easy steps.

Install it via bower: bower install gm-back-to-top

Load the scripts and the CSSs. Follow the order given in this example!

<!DOCTYPE html>
<html ng-app = "backToTop">

  <head>
    <title>Angular Material Back to Top Button - onlinecode</title>

    <script src="bower_components/dist/backToTop-min.js"></script>
    <script src="bower_components/dist/backToTop-min.css"></script>
  </head>

Add the gm-back-to-top component as a dependency to one of your modules:

(function() {
  'use strict';
  angular
    .module('setyourModule', ['backToTop']);

})();

Add the component to your index.html. If you wan’t to make it global, just put in your index file. If you want to have it on a specific page, just put it there. Check the example below:

<!doctype html>
<html ng-app="yourMainModule">

<head>
  <base href=""> 
  <meta charset="utf-8">

  <title>Angular Material Back to Top Button - onlinecode</title>
  <meta name="description" content="onlinecode">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

</head>

<body>

  <div layout="column">

    <div ui-view></div>

    </md-content>
</body>

 <gm-back-to-top gmspeed="1000"> </gm-back-to-top> 
</html>

YOU ALSO LIKE RELATED POSTS

See this Url
angular country state map location with example and demo http://www.onlinecode.org/angular-country-state-map-location/
angule 4 Validation – angule 4 Model Driven Form Validation http://www.onlinecode.org/angule-4-validation-model-driven/
Angular 2 Flexible Table Component with example http://www.onlinecode.org/angular-2-flexible-table-component-example/
angular2 typescript project structure http://www.onlinecode.org/angular2-typescript-project-structure-angular2-structure/
Send PHP mail with Attachment with script and function http://www.onlinecode.org/send-php-mail-attachment-script-function/




Hope this code and post will helped you for implement Angular Material Back to Top Button with example and demo . if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org