GithubHelp home page GithubHelp logo

hacklone / angular2-cool-storage Goto Github PK

View Code? Open in Web Editor NEW
29.0 5.0 13.0 31 KB

Cool angular2 wrapper for LocalStorage and SessionStorage

License: MIT License

TypeScript 100.00%
angular sessionstorage localstorage angular2-wrapper cool angular2-cool angular-cool storage

angular2-cool-storage's People

Contributors

barnatoth avatar gdr avatar hacklone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular2-cool-storage's Issues

Unexpected value 'CoolLocalStorage' exported by the module 'CoolStorageModule'

Hi, I was trying your module and after following your README i got this error :

Unexpected value 'CoolLocalStorage' exported by the module 'CoolStorageModule'

Do you know what could make this error happen ?

systemjs.config.js

System.config({
  ...
    map: {
      ...
      'angular2-cool-storage': 'npm:angular2-cool-storage'
    },
    packages: {
      ...
      'angular2-cool-storage': {
        main: './index.js',
        defaultExtension: 'js'
      }
    }
  });

app.component.ts

import { Component } from '@angular/core';
import { CoolLocalStorage } from 'angular2-cool-storage';


@Component({
  selector: 'my-app',
  templateUrl: 'app/views/app/app.component.html'
})
export class AppComponent {
    constructor(private localStorage: CoolLocalStorage){}
    public my_test:string = this.localStorage.getItem("my_test");
}

and of curse the same app.module.ts that you specified in README.

Got Issue with module 'AppModule' and and cool-storage-base.d.ts

Hello, like mate before me, I have same Issue with
Unexpected value 'CoolStorageModule' imported by the module 'AppModule',

and also compiler was yelled for:
readonly length: number;

in cool-storage-base.d.ts.

Repaired by adding:
readonly(length: number);

But Unexpected value 'CoolStorageModule' imported by the module 'AppModule', still exist. Newest version doesn't resolved problem.

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported.

After updating angular-cli (now on version 1.0.0-rc.0) I'm getting the following error and I'm not sure how to get this fixed. Maybe you can help?

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, 
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/metadata/ng_module.d.ts, 
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/metadata.d.ts, 
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/core.d.ts, 
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/index.d.ts, 
resolving symbol CoolStorageModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/index.d.ts, 
resolving symbol CoolStorageModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/index.d.ts

Thanks for making such an awesome module!

Pulling some files from a local filesystem source of developer

My application is compiling fine, but when I try to load my app, I see the following error in my console using lite-server

16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/index.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-local-storage.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-storage-base.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-session-storage.js.map

In index.js:

"use strict";
function __export(m) {
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./cool-storage'));
//# sourceMappingURL=/Users/Hacklone/Projects/Public/angular2-cool-storage/index.js.map

Reverting to 1.1.0 fixes the issue.

Installing a module 'ng4-loading-spinner' getting error : ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file)

After installing a new module 'ng4-loading-spinner'
I am getting a error
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/node_modules/@angular/core/core.d.ts, resolving symbol Ng4LoadingSpinnerModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/ng4LoadingSpinner.module.d.ts, resolving symbol Ng4LoadingSpinnerModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/ng4LoadingSpinner.module.d.ts

Error after upgrade to Angular 5

After upgrading to Ng5 my application throws an error when loading in the browser.

My setup worked fine on the 4.x version of Angular.

The error text is...

compiler.umd.js?9df7:509 Uncaught Error: Can't resolve all parameters for CoolLocalStorage: (?).
    at syntaxError (eval at <anonymous> (app.js:99), <anonymous>:509:34)
    at CompileMetadataResolver._getDependenciesMetadata (eval at <anonymous> (app.js:99), <anonymous>:15587:35)
    at CompileMetadataResolver._getTypeMetadata (eval at <anonymous> (app.js:99), <anonymous>:15422:26)
    at CompileMetadataResolver._getInjectableMetadata (eval at <anonymous> (app.js:99), <anonymous>:15402:21)
    at CompileMetadataResolver.getProviderMetadata (eval at <anonymous> (app.js:99), <anonymous>:15762:40)
    at eval (eval at <anonymous> (app.js:99), <anonymous>:15673:49)
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver._getProvidersMetadata (eval at <anonymous> (app.js:99), <anonymous>:15633:19)
    at CompileMetadataResolver.getNgModuleMetadata (eval at <anonymous> (app.js:99), <anonymous>:15203:50)
    at JitCompiler._loadModules (eval at <anonymous> (app.js:99), <anonymous>:33527:87)
    at JitCompiler._compileModuleAndComponents (eval at <anonymous> (app.js:99), <anonymous>:33488:36)
    at JitCompiler.compileModuleAsync (eval at <anonymous> (app.js:99), <anonymous>:33404:37)
    at CompilerImpl.compileModuleAsync (eval at <anonymous> (app.js:93), <anonymous>:261:49)
    at PlatformRef.bootstrapModule (eval at <anonymous> (app.js:105), <anonymous>:5482:25)
    at Object.eval (eval at <anonymous> (app.js:87), <anonymous>:20:53)
    at eval (eval at <anonymous> (app.js:87), <anonymous>:22:30)
    at Object.<anonymous> (app.js:87)
    at __webpack_require__ (polyfills.js:53)
    at Object.<anonymous> (app.js:6)
    at __webpack_require__ (polyfills.js:53)
    at webpackJsonpCallback (polyfills.js:24)
    at app.js:1

How to share data across subdomains?

Hi,

I want the localstorage data from mydomain.com to subdomain.mydomain.com?

If there is only a iframe and postmessage solution then i dont want.Also i believe that using cookie it is possible so why to use this plugin?

Please suggest

rror encountered resolving symbol values statically

ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in /node_modules/angular2-cool-storage/node_modules/@angular/core/core.d.ts, resolving symbol CoolStorageModule in node_modules/angular2-cool-storage/index.d.ts, resolving symbol CoolStorageModule in node_modules/angular2-cool-storage/index.d.t

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.