Issue with navbar affix in angularjs

137 views Asked by At

I'm trying to create a webpage using angularjs . I want a navbar which is fixed . I don't want to use the bootstrap navbar-fixed-top. I want to go with affix. I tried with the bootstrap affix ,but it didn't worked as expected .Bootstrap affix works fine in normal pages , but in angular view pages bootstrap affix functionality wont work. Now i'm trying with angular-js util scrollpoint .But i don't have any idea about it .When i try to include the dependency(ui-scrollpoint) , my module doesn't get loaded.

var app = angular.module('app',['ui.scrollpoint','ngRoute','ui.bootstrap','ngSanitize']);  

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-utils/0.1.1/angular-ui-utils.min.js"></script>
<link rel="stylesheet" href="https://github.com/angular-ui/ui-scrollpoint/blob/master/src/scrollpoint.js">

Is there something that im missing .Can anyone point me to acheive my target. I'm stuck at this point.My doubt is about cdn .help me

0

There are 0 answers