Skip to content

filepath.strip is not a function #90

@winnemucca

Description

@winnemucca

I am leaning heavily on cacheIdFromPath to see why my files which show up in the debugger are not showing up in the tests.

I am having no problem using the commented out part to set a path (but still cannot test my directives). For some reason the path wants to go all the way back to my directory.

I was trying filepath.strip, but I keep getting an error filepath.strip is not a function. This is odd because I am copying it exactly from the documentation. Is this a bug with angular 1.5 and bard.js or is there more to setting up filepath.strip


cacheIdFromPath: function (filepath) {
            //console.log('filepath',filepath);

            //var cacheId = filepath.substring(filepath.indexOf('/Templates'));
            //console.log('cacheid',cacheId);

            var cacheId2 = filepath.strip('Templates/', ' ');
            console.log('2', cacheId2);

            return cacheId2;
        },
        moduleName: 'templatesCached'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions