1

I am using Mobile Angular Ui. I want to install ngsanitize. I have seen one link How to install ngSanitize?

I have successfully installed

npm install -g bower
bower install angular-sanitize --save

But when i putted in app.js then it is not works.

angular.module('Y', [
  'ngRoute',
  'mobile-angular-ui',
  'Y.controllers.Main',
   'ngSanitize'
])
.config(function($routeProvider) {
  $routeProvider.when('/', {templateUrl:'home.html',  reloadOnSearch: null})
                .when('/cityPage', {templateUrl:'cityPage.html', reloadOnSearch: false})
                .when('/category-prduct', {templateUrl:'category-prduct.html',  reloadOnSearch: false})
                .when('/product-description', {templateUrl:'product-description.html',  reloadOnSearch: false})
                .when('/my-winni', {templateUrl:'my-winni.html',  reloadOnSearch: false})
                .when('/gift-box', {templateUrl:'gift-box.html',  reloadOnSearch: false});
});

I have import script in index.html.

> <script
> src="/bower_components/angular-sanitize/angular-sanitize.js"></script>

But when i did changes in app.js, then it is not work. I am using MOBILE ANGULAR UI frame work. I think its have differ approach. When i installed npm install -g bower and bower install angular-sanitize --save. Then one folder (angular-sanitize) created in bower components.But i import in app.js then my project is not run.

Community
  • 1
  • 1
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103

0 Answers0