Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Grunt build does not properly attaches directive templateUrl #1383

Open
TiwariShubham opened this issue Jan 3, 2017 · 3 comments
Open

Grunt build does not properly attaches directive templateUrl #1383

TiwariShubham opened this issue Jan 3, 2017 · 3 comments

Comments

@TiwariShubham
Copy link

I have templateUrl in my directives and it is put up in the template folder just like there are views kept inside views folder but when I run grunt build, it somehow misses to take care of the templateUrl mentioned in the directives. If anyone has got any solution to it, then please let me know. Thanks!

@himanshuchandra
Copy link

himanshuchandra commented Jan 10, 2017

This issue is a same as #1380 the solution provided worked fine for me.

@TiwariShubham
Copy link
Author

Did downgrading worked for you?

@himanshuchandra
Copy link

It's a problem with angular 1.6 but before downgrading I tried this

angular
  .module('webApp', ['ngAnimate', 'ngAria', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch'])
  .config(function ($routeProvider, $locationProvider) {
    $routeProvider
      .when('/blog', {
        templateUrl: 'views/blog.html',
        controller: 'BlogCtrl',
        controllerAs: 'blog'
      })
      .otherwise({
        redirectTo: '/'
      });

     $locationProvider.hashPrefix('');
  });

given by Playntek in #1380 and it worked fine,so no need to downgrade.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants