public AngularJsHtmlAttributeDeclaredElement(IPsiServices psiServices, string shortName,
     IHtmlAttributeValueType type, IHtmlTagDeclaredElement tag)
 {
     ShortName = shortName;
     ValueType = type;
     Tag = tag;
     this.psiServices = psiServices;
 }
Example #2
0
 public AngularJsHtmlAttributeDeclaredElement(IPsiServices psiServices, string shortName,
                                              IHtmlAttributeValueType type, IHtmlTagDeclaredElement tag)
 {
     ShortName        = shortName;
     ValueType        = type;
     Tag              = tag;
     this.psiServices = psiServices;
 }
        public AngularJsHtmlElementsProvider(Lifetime lifetime, AngularJsCache cache, ISolution solution)
        {
            this.cache = cache;
            this.solution = solution;

            // TODO: Finer grained caching?
            // This will clear the cache of elements whenever the AngularJs cache changes, which will be
            // every time a .js file is updated
            cache.CacheUpdated.Advise(lifetime, ClearCache);

            // TODO: Is this the right value for angular attributes?
            cdataAttributeValueType = new HtmlAttributeValueType("CDATA");
        }
        public AngularJsHtmlElementsProvider(Lifetime lifetime, AngularJsCache cache, ISolution solution, HtmlStandardDeclaredElementsProvider standardProvider)
        {
            this.cache            = cache;
            this.solution         = solution;
            this.standardProvider = standardProvider;

            // TODO: Finer grained caching?
            // This will clear the cache of elements whenever the AngularJs cache changes, which will be
            // every time a .js file is updated
            cache.CacheUpdated.Advise(lifetime, ClearCache);

            // TODO: Is this the right value for angular attributes?
            cdataAttributeValueType = new HtmlAttributeValueType("CDATA");
        }